top is a Unix/Linux/BSD program to show what processing are running. It can show the top users of CPU or memory.
Questions tagged [top]
302 questions
2
votes
1 answer
Our web server grinds to a halt when making XMLRPC requests. Please analyse my `top` output to see what's wrong
This a shared web server for our office and normally runs just fine with a few devs working on it simultaneously.
However, I've recently started working with it using Wordpress and it's XMLRPC API feature and things turned sour. I'm making an iPhone…

Matt
- 322
- 2
- 3
- 12
2
votes
2 answers
What is using all my RAM? Understanding the output of top
I've read a number of top memory use questions but I don't think they answer this.
Here's the most significant part of a top run:
top - 01:11:41 up 4 days, 1:06, 3 users, load average: 0.00, 0.03, 0.26
Tasks: 86 total, 1 running, 84 sleeping,…

Joe
- 529
- 8
- 18
2
votes
1 answer
top vs vmstat on Debian squeeze/xen
I'm running a squeeze DomU on xen 4.0.1 which is completely unloaded. I notice a difference in cpu states between iostat and top like:
top (in every iter):
Cpu0 : 0.2%us, 2.0%sy, 0.0%ni, 94.2%id, 2.7%wa, 0.0%hi, 0.0%si, 0.9%st
iostat -x 3…

gnump
- 41
- 3
2
votes
1 answer
why is ubuntu lsb_release being called every 30 seconds?
I'm running ubuntu server, and I was staring at "top". lsb_release seems to pop up every 30 seconds - which in turn calls apt-cache. I don't really know where to start looking for the source of this issue, is it part of some update checking…

loosebazooka
- 131
- 1
- 4
2
votes
1 answer
Can top show more than 100% in %MEM?
Can the %MEM value for a process show more than 100% in top output?Is this ever possible?

user973430
- 21
- 2
2
votes
2 answers
More in depth TOP command?
I recently came across a screenshot that looks to be using the "top" command, but it is showing a lot more in-depth info in terms of CPU usage:
The program shows detail down to which plugin in Wordpress is taking up all the resources. How is this…

brant
- 169
- 1
- 7
2
votes
3 answers
log first 5 rows from top output - server freezes
Could someone give a tip on how to log first 5 rows from top output? I was thinking about grep, but don't know how to pick rows.
I need to understand. What freezes server sometimes. Maybe there are some tools for it?
Thanks ;)

Somebody
- 364
- 1
- 6
- 17
2
votes
4 answers
my webserver with 16GB ram shows all RAM as used, but is it really, see the 'top'
I have some questions about my web server. Its a LAMP web server running centos 5.5 and php5, mysql5. The server gets hundreds (maybe thousand) of concurrent users during peak hours.
I'm trying to optimize a little and understand "top". From what I…

Alex
- 29
- 3
2
votes
2 answers
CentOS server. What does it mean when the total used RAM does not equal the sum of RES?
I'm having a problem with a virtual hosted server running CentOS. In the past month a process (java based) that had been running fine started having problems getting memory when the JVM was started.
One strange thing I've noticed is that when I…

rilkeanmind
- 23
- 1
- 5
2
votes
1 answer
What does the suffix 'w' and 'd' mean with 'TIME+' in top?
Here's a chunk of the top from my server:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18878 www-data 20 0 200m 13m 4704 S 0 0.2 0:00.07 apache2
12374 root 20 0 197m 9460 4480 S 0 0.1 …

ssapkota
- 538
- 1
- 4
- 9
2
votes
3 answers
How to enable non sudo user access to top with all processes?
I use Ubuntu Server 10.04. I have users that normally don't have access to sudo. When this user is using top command he sees only processes for the current user. I added a line to /etc/sudoers:
user ALL = NOPASSWD: /usr/bin/top
But now we have…

trylik
- 23
- 2
2
votes
1 answer
EC2 instance CPU in thousands
I started a new instance (c1.medium) and top show some crazy cpu usage
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9561 ubuntu 20 0 84888 63m 3472 R 5880 3.6 493:36.15 ruby …

Oleg Gutsol
- 21
- 1
2
votes
2 answers
top: What does cpu usage mean?
I have several processes right now running at 100%. Is it 100% of the alloted resources to the process?
UPDATE
Take a look at this for example:
top - 06:01:13 up 5 days, 22:19, 2 users, load average: 0.74, 1.24, 1.12
Tasks: 297 total, 1 running,…

gAMBOOKa
- 999
- 6
- 19
- 34
2
votes
2 answers
What value in 'top' output represents actual memory size of a process?
I'm running a Mac XServe as a dedicated apache mpm-prefork server with 8GB RAM. As part of the tuning process (I'm new to this), I'm trying to come up with the best value for MaxClients. To do so, I'm using 'top' to come up with a average process…

Derek Downey
- 3,955
- 4
- 27
- 29
2
votes
2 answers
FreeBSD: how can I make "top" not cut off commands?
I use top in a perl script for storing information about the system in DB. The actual command is:
top -b -d1 -a all
However the COMMAND field seems to be 60 chars max and everything else is cut off. Is it possible to output full commands using top?…

Eugene Yarmash
- 2,433
- 5
- 34
- 54