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

4
votes
2answers
2k 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
4k 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
424 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(); System....
1
vote
1answer
529 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
133 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
769 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
603 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 ...
7
votes
2answers
3k 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
2k 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
513 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
5k 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): 0.6%...
1
vote
2answers
689 views

Top being high but not much processors are running on high cpu usage?

I have a machine running a very small java listener and no body is using this machine but load is like staying between 0.9 to 0.6 for nearly sometime? IS it any indication here? What could be causing ...
1
vote
2answers
7k views

ps shows that migration/* processes consume a lot of CPU, but top keep silence about them

here is the result of ps command, shown only first 10 lines ps aufx | head USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 2 0.0 0.0 0 0 ? S ...
1
vote
1answer
190 views

VPS Node and top -c

When using and viewing top -c with openvz does the CPU usage and everything include usage for everyone else on the system or just you? I've been watching my VPS node for awhile now and I've seen ...
0
votes
2answers
2k views

how to monitor select processes on centos 5.x host?

I would like to monitor a select group of processes, vmware vm's, running on my centos 6 host. "top" gives me most of what I want in that I can use -p to specify only those processes and -c to get ...
0
votes
1answer
414 views

Enable foreign users processes listing

how can I enable under Debian 6 to list the processes of a foreign user? I have the user nagios but this user can only list his own processes. Br
4
votes
1answer
5k views

MongoDB virtual memory usage

I'm testing MongoDB for archives data. We have a collection with 160M rows. MongoDB instance takes 76.2 Gb virtual memory on a 12 Gb physical memory box ;-) The swap in null. I read that virtual ...
20
votes
2answers
22k views

How to interpret output from Linux 'top' command?

Following a discussion made HERE about how PHP-FPM consuming memory, I just found a problem in reading the memory in top command. Here is a screenshot of my top just after restarting PHP-FPM. ...
1
vote
1answer
388 views

High Steal Time utilization on Apache Linux Server

I have a CentOS "development / testing" server that runs extremely slowly. It's running Apache and Mysql using PHP. Top reports that 98% of the CPU utilization is frequently spent on "st" - Steal Time....
4
votes
2answers
8k views

How to sort top result on virtual memory on Redhat Linux?

There is an interactive key "M" to sort by memory, which seems to be sorting on resident memory. Is there a way to sort on virtual memory? I happen to be working on Redhat Linux, but the question is ...
5
votes
1answer
372 views

Mysterious swap usage on EC2

We're in the middle of a project to move our infrastructure from a co-lo situation into Amazon EC2 and we've noticed some weird memory characteristics of the processes in our setup. Without going into ...
0
votes
1answer
875 views

top command occupied high cpu usage

My system is SUSE 10 and I observe that top occupies 57% CPU usage when I use it. I don't have too many processes: ps -eLf | wc -l 106 Here are top's stats: cat /proc/2913/stat 2913 (top) R ...
-1
votes
3answers
199 views

server not responding

The server is not responding and the top output shows the following: mysql is consuming more than 500% of CPU Will the server restart solve ths issue? Will I face the same problem after restart? # ...
0
votes
1answer
144 views

why pressing M in linux's top command will have many processes that does not exist?

i pressed M in top command try to get a memory sort for the processes, 5892 myuser 15 0 88428 86M 12520 S 0.0 4.2 0:01 0 java 5893 myuser 15 0 88428 86M 12520 S 0.0 4.2 6:...
0
votes
1answer
1k views

memory difference on top and htop

I got a new VPS as my database server. I installed only mysql and started. After some time(even after shutting down mysql service), I see only %3-4 of the memory used in htop but according to top I ...
0
votes
2answers
2k views

Get unix 'top' command output from Expect script

All, EDIT I want to execute a unix statement in Expect script and get an output without having to include the interact statement.The unix statement outputs rsize value for a process. I haven't ...
2
votes
1answer
475 views

Is there a way to run top as a daemon to gather historical process data?

I am aware that I can write a cron job that will run top in batch mode and write the output to a file but I am looking for something more elegant than that. Also I am aware of sysstat (sar) but I am ...
0
votes
1answer
961 views

How can I monitor php resources usage with top command?

There is a question that is similar to what I want to know here on server fault: How can I find exactly which PHP scripts are taking up all server resources? but I don't think any of the answers ...
1
vote
2answers
2k views

nginx+php-fpm help optimize configs

I have 3 servers. First server (CPU - model name: 06/17, 2.66GHz, 4 cores, 8GB RAM) have nginx as load balancer with next config upstream lb_mydomain { server mydomain.ru:81 weight=2; ...
1
vote
4answers
3k views

Apache uses up a lot of CPU for small website

I have a CentOS 5.5 VPS server with 512MB RAM setup. There is 1 website hosted on it through Apache/PHP/MySQL which is built in Magento, a popular ecommerce framework. When I browse the website, it ...
2
votes
1answer
127 views

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 ...
6
votes
3answers
15k views

TIME+ column in top command is inaccurate

I just ran the top command to observe the following process chown -r me:me allMyMusic And it's been running for about 5 minutes, however the TIME+ column in the top command has reported it as ...
7
votes
3answers
3k views

How to exclude some users from Linux Top screen?

In top screen, by default it shows all users' processes. How to exclude some users(for example, root and nobody) from the top real-time screen?
2
votes
3answers
1k views

top reports swap at 100%, free memory available

On RedHat 5 servers, we see top reporting swap has 0k free. vmstat shows the same amount of swap used, but no paging. We kill our only app, and top still reports 100% of swap used. If we reboot, ...
0
votes
2answers
385 views

Load Average cpu linux server

i have a problem with the load average on server, I'm using on server When I check the processor - with "top" command I see that : top - 04:27:37 up 39 min, 1 user, load average: 0.78, 0.77, 0.77 ...
2
votes
2answers
8k views

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,...
3
votes
4answers
8k views

Is it possible to filter top to show specific processes?

I'm run top and I want to always see java/tomcat/redis/mysql/mongo, is that possible?
0
votes
3answers
1k views

Top not showing processes using CPU resources

I have this output from top for the top 10 processes sorted by CPU usage descending: top - 11:19:58 up 1:46, 2 users, load average: 3.22, 3.48, 3.34 Tasks: 66 total, 5 running, 61 sleeping, ...
5
votes
1answer
1k views

Why do I see many mongod processes running?

I am running a single MongoDB database. No sharding. When I run htop, I see a lot of instances of mongod. Is that normal? Does every connection create a separate mongod process? Should I be concerned? ...
2
votes
2answers
3k views

Ubuntu server using too much memory

my server is at a very high memory usage constantly - to the point that it won't let me log in via ssh some times. I have to reboot the server before I can log in and when it's restarted the memory ...
3
votes
1answer
5k views

How do I tell real CPU load in a xen environment?

I have a Debian machine with 4 CPU cores running Xen with two virtual machines, and I'm having trouble determining overall real CPU usage. Each machine has two VCPUs assigned to it with no cap on CPU ...
0
votes
1answer
99 views

Collect output of top command displayed with separate option

I would be grateful to you for some details about the top command output achieved using the hotkey "A". I suppose the it gives back the swap usage per PID: it is right, isn't it? Could you please ...
1
vote
1answer
561 views

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
votes
1answer
383 views

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 ...
1
vote
1answer
900 views

400% CPU usage for MySQL? What? What should I do?

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 19857 mysql 20 0 514m 47m 3404 S 386 9.7 4511:45 mysqld 15659 www-data 20 0 205m 11m 4856 S 7 2.3 0:00.67 ...
2
votes
1answer
233 views

Can top show more than 100% in %MEM? [closed]

Can the %MEM value for a process show more than 100% in top output?Is this ever possible?
4
votes
2answers
568 views

Linux top command. Memory usage

I am testing my web server with Jmeter. I launch 40 users test, then dump top command. What i see, is 40 (+1 host) apache processes. Each process uses appr. 7mb of RES memory. But 7*40 is 280 mb of ...