top is a Unix/Linux/BSD program to show what processing are running. It can show the top users of CPU or memory.

learn more… | top users | synonyms

1
vote
0answers
217 views

How to find which cron job is hogging CPU?

I am getting a spike in network utilisation on my ec2 micro instance at a specific time each day. Using atop, I found that it is the daily cron that causes the problem: PID RDDSK WRDSK WCANCL DSK ...
1
vote
1answer
136 views

How to find cause of EC2 micro instance regular read/write surge?

Every day without fail, sometime between 06:20 and 07:00 UTC, I get two email alerts from EC2 warning me that my "High VolumeWriteBytes" and "High VolumeReadBytes" have exceeded my set threshold. I ...
1
vote
4answers
768 views

Server Load very high despite CPU usage being low

When I run the top command I get this top - 23:20:50 up 1:25, 1 user, load average: 11.02, 11.20, 10.41 Tasks: 262 total, 3 running, 258 sleeping, 1 stopped, 0 zombie Cpu(s): 75.6%us, ...
0
votes
0answers
183 views

Higher load, but no higher CPU usage

On one of our production servers, the "load" as reported by cacti, has suddenly increased. Usually on our servers the load is about proportional to the CPU usage. However, this time the load has ...
3
votes
3answers
3k views

tail: inotify cannot be used, reverting to polling: Too many open files

tail: inotify cannot be used, reverting to polling: Too many open files I'm running apache and tomcat servers on Ubuntu (AWS ec2). Whenever I try to tail the catalina.out of tomcat I get too many ...
2
votes
2answers
146 views

How do I identify which website on my server is under heavy traffic?

I currently host one website on a server which many other websites use connect to via an API. When I use the terminal command 'top' I can see www-data is the main culprit for my server running slow. ...
-2
votes
4answers
324 views

How can I get combined CPU usage for all CPUs in one line on Linux? [closed]

I want to output the following: Average CPU utilization across all cores, over the last n seconds, in a single percentage value. So if I have 4 CPUs and their combined user and system utilization ...
0
votes
1answer
59 views

Many 'yum' processes running constantly

I am getting this output when I run top and trying to work out if it's problematic and why it would be doing this in the first place, all the 'yum' instances seem to always be there: PID USER ...
-1
votes
3answers
1k views

Is this server using too much RAM or virtual memory ? (screen attached) [closed]

I have a VPS with 512MB of ram 40GB storage 1CPU, I run a small domain parking service on it. It is on CentOS, MySQL, Apache, etc. Now my hosting provider claims that my server is putting too much ...
0
votes
1answer
233 views

Does 'top' show memory / CPU usage of parallel processes on cluster?

Recently inherited a neglected cluster: I'm trying to do some sanity checks on it. Running a benchmark on node X and then running 'top' shows high cpu usage from mpi processes (as expected), but on ...
4
votes
5answers
21k views

Find out what high CPU usage apache process is actually doing?

Currently having a few issues with our server where, intermittently, we seem to get apache processes which just run and run, taking up 100% CPU. When running top, we see the following: PID USER ...
0
votes
1answer
762 views

CentOS 5: is %wa too high or optimal?

i have question about waiting for HDD. I'm not sure what is optimal %wa. Server running browser game, i know that there is a lot hdd writing but im not sure what is optimal %wa. Server running 8 ...
0
votes
1answer
59 views

What is using the memory when e2fsck is running? [duplicate]

I am having trouble running e2fsck due to memory limitations, as detailed in this question. In the course of investigating that, I came upon something that may be of more general interest, so I will ...
0
votes
0answers
208 views

Top shows md127_raid1 with high CPU load?

I have a new server, when I use "top" to see busy processes I usually see md127_raid1 either at the top or close to the top What is this process doing? How can I easily verify that the raid is ...
1
vote
1answer
710 views

How to get /proc/[pid]/cmdline to contain command arguments?

I am running into an issue where some of my Ubuntu/Debian servers do not show the arguments passed to rake in either top or ps. I have tracked this problem down to a variation in output given by ...
2
votes
2answers
634 views

Linux process swap usage is greater than the overall system swap usage

I have a strange problem that when I run top command it shows that some processes are using around 1.5GB of swap space but then the overall usage of the system swap is way to less to something around ...
0
votes
1answer
933 views

Sum of memory of few processes in top is greater than 100%

I'm trying to calculate the amount of memory used by AMP in an LAMP stack machine. top -bn1 | grep -E '(mysql|httpd|php)' | awk '{mem += $(NF-2)} END {print mem}' But the sum generated using the ...
0
votes
1answer
166 views

vsphere + Foglight and running top command does not match

We have a vsphere cluster and we are trying to setup monitoring via Foglight to monitor memory usage at the Guest level. However, there are inconsistencies in reporting metrics.. most likely due to ...
0
votes
1answer
139 views

Where is my RAM going? Top command included [duplicate]

Possible Duplicate: How to understand the memory usage and load average in linux server Tasks: 39 total, 1 running, 37 sleeping, 0 stopped, 1 zombie Cpu(s): 0.0%us, 0.0%sy, ...
5
votes
1answer
579 views

Identify which process is responsible for heavy disk i/o under FreeBSD

I wonder how I can monitor which process takes out all my IO bandwith. The only command i know is gstat but it shows cumulative info. Is there any tools i can use to inspect the running processes for ...
1
vote
1answer
469 views

TIME column in TOP command for mysql

When I run top on my database server I get that mysqld has been running for 4:00.51 and it continues to go up. I assume this means that one process with mysql has been running this long from other ...
2
votes
1answer
123 views

How to interpret increasing SHR reported by top?

The man page for top defines SHR as: t: SHR -- Shared Mem size (kb) The amount of shared memory used by a task. It simply reflects memory that could be potentially shared with other ...
6
votes
2answers
3k views

How to get top command output to show rake arguments?

In the past, all of our servers have automatically shown command arguments passed to rake when we view them in top. For example: But on this particular server, we get this instead (picture is top ...
0
votes
1answer
80 views

Linux released memory

If My process allocates some big memory and then deallocates, would top or gnome-system-monitor show that my memory usage of that process decreased ? or kernel will still reserve that memory for that ...
2
votes
2answers
127 views

Linux: Finding the system processes which are at the top

I am running a multithreaded program on my 8-core processor. top command shows 8 processes are running and each one utilizes a core by 100%. The problem is that only 21% are marked as user cpu and my ...
0
votes
2answers
414 views

0% CPU in top for all processes, but load average > 1

On two different servers (with Ubuntu 12.04LTS AMD64) I have seen the following behaviour: op - 10:50:05 up 305 days, 21:17, 1 user, load average: 1.94, 2.52, 2.97 Tasks: 141 total, 2 running, ...
1
vote
2answers
581 views

Live monitoring on web server logs by tailing the webserver access log

I am looking for a way to find who causes high load on my nginx web server but I do have too many requests per minutes to figure it out which one is the real cause. I want a solution that would work ...
-1
votes
3answers
125 views

How to solve memory issues in Linux

How to get details of a process that is taking RAM. From top command i have found that Mysql is taking too much ram how can i know why Mysql is taking too much ram far from usual behavior? Is there ...
4
votes
1answer
804 views

How do you measure the memory footprint of a set of forked processes?

Say I've got a process using 200MB of memory, and it fork()s: python -c "import os; data='x'*200000000; os.fork(); raw_input()" Programs like 'top' will show each process using 200MB, with very ...
0
votes
1answer
94 views

how can I tell if there is a cpu trashing on my linux machine

I want to write a script that will kill my processes when my machine is doing "too much" swapping of process memory from disk to memory. What is the best way to determine that? I saw top has %wa and ...
3
votes
2answers
564 views

Monitor CPU usage over period of time on Ubuntu

Is there some way to monitor my CPU usage over a period of time, e.g. get a graph that shows CPU% vs. date/time? I occasionally see high load using htop, but I'd like to see what's happening ...
1
vote
1answer
462 views

Top showing 64% idle on first screen or batch run, while there is no idle time at all

I'm running a quite heavy number crunching thing on a few 4 core servers, all running Ubuntu Precise Pangolin LTS 64 bit, in the cloud (so I suppose in a virtualized environment). To monitor the cpu ...
3
votes
1answer
2k views

top process state column under FreeBSD

When running top interactively, I can see various words in the state column : nanslp, biord, select, uwait, lockf, pause, kqread, piperd, sbwait ... Some like nanslp or kqread are self ...
2
votes
2answers
2k views

How to show high usage user's username with the top command, if the username is too long?

I'm having problem identifying high usage users on a shared Linux machine. I use the "top" command and it does show which commands are using the most CPU. But the usernames on this server all start ...
1
vote
1answer
150 views

ps -o pcpu on Debian Squeeze is giving meaningless numbers

I'm trying to get the CPU percentage for processes on a busy server out of ps, but it's giving me nonsensical numbers. Here's a truncated example: $ ps -eo pcpu,pid | sort -n %CPU PID ... 36.5 ...
1
vote
4answers
230 views

Is there any tool that I can use to monitor memory usage of each process on Linux easily? [closed]

This issue is not the same as the question on how to see the memory usage of a Linux process. Also, the top command doesn't give the exact memory used, but just what percentage one process uses, so ...
4
votes
2answers
616 views

How to read `top`. Process list says processes have swap but overview says no swap is being used

I am using top to monitor my server. The swap row reads Swap: 1044220k total, 0k used, 1044220k free, 148544k cached I have hit O p to sort by swap. PID USER PR NI VIRT RES ...
7
votes
1answer
3k views

Why does top report a different cpu usage than CloudWatch?

top shows an average CPU usage during peak times of about 20% while CloudWatch monitoring shows an average CPU usage of 40%. What causes this discrepancy?
1
vote
1answer
364 views

Linux top not tallying with java used memory

We have a java application where towards the last part of the codes we wrote these lines Runtime runtime = Runtime.getRuntime(); long memory = runtime.totalMemory() - runtime.freeMemory(); ...
1
vote
1answer
445 views

free -m is showing total of 309 Mb for a system with 4GB RAM

OS:Xen Cloud Platform 1.1 (XCP) modified centos, and xen server 5.0 running on intel i5 free -m total used free shared buffers cached Mem: 309 ...
-3
votes
2answers
1k views

Load Average too high.Top not showing much?How to find the process?

Debian 6.0 running on VPS with single core and 3 Gb RAM. top - 09:24:19 up 17 days, 13:05, 2 users, load average: 14.79, 16.19, 11.10 Tasks: 14 total, 1 running, 13 sleeping, 0 stopped, 0 ...
1
vote
1answer
123 views

How to determine httpd memory usage

If I have this output from top for httpd, how do I determine its total memory usage? 16924 apache 20 0 203m 7108 2852 S 0.0 0.2 0:03.48 httpd ...
0
votes
1answer
642 views

load-causing processes disappearing from “top” ps -o pcpu shows bogus numbers

I administer a large number of servers, and I have this problem only with Ubuntu 10.04 LTS: I run a server under normal load (say load average 3.0 on an 8-core server). The "top" command shows ...
1
vote
3answers
2k views

No apparent reason for high load average

We have several web servers running on Amazon (ec2) c1.xlarge, over Amazon AMI. The servers are duplicates of each other, running the exact same hardware and software. Each server spec is: 7 GB of ...
0
votes
1answer
1k views

How to get Network Data Received and Data Sent Information on Mac OS X?

I want to store the network data received and data sent information on a variable or in a file. Using the below command I can grep it and print the line on screen. But I'm not able to store the info ...
1
vote
2answers
481 views

No clue for high load average on top

We have several machines on Amazon (ec2) of the type c1.xlarge with 16 cpus, running the Amazon AMI. Details on the machine: 7 GB of memory 20 EC2 Compute Units (8 virtual cores with 2.5 EC2 Compute ...
4
votes
2answers
2k views

Why does ec2 monitoring show 100% cpu and top only 20%?

I am running an python script on an ec2 instance that inserts rows in an database on another instance. In ec2's monitoring I saw a 100% cpu utilization, whereas top only shows 20% for the python ...
0
votes
2answers
1k views

load average in top and procs in vmstat

As far as I know, the load average in top is the numbers of precess(threads) in running or uninterrupted sleep status, So it should be equal to (procs-r +1 )+ procs-b in vmstat, but in practice, this ...
1
vote
2answers
408 views

Solaris: what's a kernel trap?

I'm trying to understand whether the high trap count reported by top on Solaris 10 Kernel: 1659 ctxsw, 1069 trap, 4433 intr, 3837 syscall, 5 fork Memory: 8192M phys mem, 299M free mem, 4103M total ...
3
votes
3answers
4k views

Diagnosing high CPU waiting

I have a monitoring server that is running icinga/collectd/graphite with about 50 hosts. I have noticed high load/slugging performance on the box. If you take a look at top, you'll see: Cpu(s): ...