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
1answer
766 views

How filter top output by the COMMAND column?

I want get the same result when pressing u to filter by USER, but instead using the column COMMAND and of course, I need this live (I mean, updating constantly) ;) I'm on Ubuntu.
3
votes
1answer
781 views

Measuring load - %CPU in top is different than %us

When I run TOP on a remote server, I see a very small system utilization (3.8%us). However, for the actual process I am seeing 29.6% of the CPU. Since this server has 8 CPU cores, is the %CPU the ...
5
votes
1answer
764 views

why top gives cpu percents more than 100%

see below statistics by "top -u steve", something is wrong with top? PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3490 steve 20 0 10444 312 248 R 114 0.0 23:33.22 ...
2
votes
2answers
82 views

Can `top` show average data?

top shows instant resource usage. Also it has -d option that sets refresh rate. But how can I get average %CPU for processes for 1 minute?
8
votes
1answer
173 views

Is there a tool that can top-ify an input stream?

I come across quite a few use cases where it would be very useful to take input from a (usually newline-delimited) stream and summarise it in a top-like fashion (see top, iotop, etc). A kind of ...
0
votes
2answers
508 views

How to clear/reset the top-commands TIME counter

To find a performance problem I use "top" commands TIME column in cumulative mode (which is important for me because it also captures all the small executed child processes) When any changes in the ...
-2
votes
1answer
564 views

Which request is httpd2-prefork running? [closed]

Hi my server is running low on memory from time to time I assume apache is the problem. Is there a way how i can tell which http-url a httpd2-prefork from top is running?
2
votes
1answer
130 views

read-only `top` in linux?

I have a few servers with an application for some clients, and I want to make an application available for the client to view the server and application status, and to be able to restart some ...
0
votes
1answer
36 views

Running “top” memory seems high? [duplicate]

I'm not a Ubuntu expert, but I've just ran top on a Ubuntu server box and Terminal has highlighted the results in red, it looks pretty high to me. Is this right? I'm only really running Apache and ...
3
votes
3answers
288 views

finding kernel space programs [duplicate]

how can we determine %sy process that is Consuming CPU. In the following case there is no netfilter and traffic is under 1 mbps.but still system process are taking too much cpu and cpu usage for ...
0
votes
1answer
365 views

Limit TOP to specific processes (without static PIDs)

I would like to monitor specific processes via TOP on our application servers via TOP. Currently, I have been using the following in BASH to monitor just the processes that I am interested in: top -p ...
1
vote
0answers
254 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
141 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
865 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
193 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
4k 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
150 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
378 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
62 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 ...
0
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
289 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 ...
5
votes
5answers
28k 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
845 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
65 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
223 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
815 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
953 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
1k 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
180 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
146 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
784 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
532 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
146 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
81 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
130 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
529 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
781 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
126 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
1k 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
103 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
775 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
2answers
519 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
168 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
236 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
1k 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
399 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(); ...