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

0
votes
1answer
159 views

100% Hardware IRQ while PHP just seems to hang for a second

I'm running the FLOW3 Quickstart on a Fedora machine (virtualized on Windows, if that helps). Each and every single request takes about 1.2 seconds to run the most simple example of this framework. I ...
4
votes
3answers
4k views

Memory Usage by Bytes Top 10

I need a way to see how many bytes to top ten processes are using not percentage. I am using centos
2
votes
1answer
668 views

top, w, ps showing wrong CPU times

I've spotted this trait recently on some of my Ubuntu servers (10.04.2) on Amazon EC2 (not noticed this on any physical boxes), and can't quite comprehend how it's getting these figures. They can't be ...
6
votes
1answer
5k views

Problems with cron script and TERM definition using top command

I have a problem executing a cron process to check current CPU use in my server. My script start with: top -c -n 1 -u www-data > /tmp/kill-cpu I can execute without problem in console, but in ...
2
votes
2answers
460 views

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 ...
0
votes
2answers
193 views

How can I identify the purpose of a process called “analog”?

I had an unusual amount of memory being used in the server and when I logged in as root and ran "top" I got this line: 13778 global 34 19 1726m 857m 336 D 1.3 85.6 1:49.89 analog ...
1
vote
2answers
2k views

memory leak? RHEL 5.5. RSS show ok, almost no free memory left, swap used heavily

i encounter a very instresting problem, and it seems that some physical may disapper quietly. i am very puzzled, so if anyone could give some help, I would be very appreciated. here is my top show: ...
1
vote
1answer
2k views

top command indicates a different cpu usage than sar command

In my CentOS server, when I check the resources with sar command, user cpu usage is around %15 while in top command the sole 'java' process uses like %99 of cpu. sometimes it's even goes further than %...
2
votes
3answers
269 views

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

CPU usage is very large in top command of Linux

I run SUSE Linux Enterprise Server 11 SP1 in a virtual machine. The hypervisor is KVM. There is 4 virtual CPU cores for the VM. Now there is a very strange thing. In theory the maximum CPU usage ...
0
votes
1answer
178 views

“Used” memory in top larger than the VmSize of all pocesses listed in /proc/?

It used to be my understanding that top's definition of memory "use" was the number of physical pages mapped to any processes. However, recently I saw something that made me think otherwise. I'd ...
0
votes
3answers
186 views

What does top report in a Linux-VServer

So if im logged into a linux-vserver and run the command top. Is the fields 'load average' and cpu's for the virtual server or the host machine?
0
votes
2answers
484 views

what is the best way to find the bottlenecks on my LAMP web server?

can you help me find the bottle neck on my server. In the previous question I asked on SF, I was told that memory is no problem and I have plenty of it. I'm curious about CPU, perhaps HDs ... what ...
2
votes
4answers
528 views

my webserver with 16GB ram shows all RAM as used, but is it really, see the 'top' [duplicate]

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

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. ...
2
votes
1answer
977 views

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

How do I increase size of Terminal on Linux

I have a 48core linux box. I would like to monitor per core cpu usage. However when I use top and press 1 I get an error message "Sorry, terminal is not big enough" Is there anyway I can increase ...
9
votes
8answers
8k views

High CPU load but top processes in top all around 0%

We have a server with unusual high load and cpu util, but we can't figure out why. When we run top all the procs seem to be very low cpu. http://cl.ly/2d1g0K3q261r0R0K3e35 Is there a better way to ...
0
votes
2answers
292 views

How Can Linux Top Show 2% Idle, but Load Say 1.20?

On CentOS5, I'm seeing the 'top' command showing a hover between 20% and 2% idle, but then the load says 1.20. How can that be possible? When I type 'uptime', as well, I see 3 load numbers that are ...
4
votes
2answers
268 views

Load average at 1, even though I've stopped all services!

I have a virtual server running Debian 5 where any action is very slow (like password verification when logging in via SSH or doing su). I checked the load average, which is hovering around 1-2. Then ...
1
vote
1answer
493 views

Top command, system column

I'm not great with linux, but I do enjoy the limited exposure I have. We use a virtualised red hat server for software development, and one of the things I have to do is check who's hogging the CPU ...
11
votes
3answers
40k views

Something eats all memory (I suspect memory leak on some app). How to detect what?

I have server which runs liquidsoap+icecast bundle and simple website (httpd+mysqld). Nothing special. Visitors around 2000+ per day, with around 50 being online simultaneously on average. Server has ...
4
votes
2answers
3k views

How do get apache display url request in Top and PS?

Is there a way to get apache to display the url that it is handling in top and ps? This would help us nail down performance issues much more faster. Thanks.
-1
votes
1answer
893 views

What do negative numbers under TIME+ in htop mean?

What do the red negative numbers I'm seeing displayed in htop mean? Should I be worried?
2
votes
3answers
251 views

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 ...
3
votes
1answer
2k views

How can I find the source of my high load issues on Ubuntu server?

We have an Ubuntu 10.4 VPS serving a Rails site which often shows pretty high load, but doesn't have high CPU or memory numbers. Reading a lot of other questions here on Server Fault suggests to me ...
0
votes
4answers
1k views

Hiding other users' processes on top

I'm running a Debian server and giving out shell access for a handful of friends. I'd like to hide the running processes from those normal users, so that for example top only shows their own processes,...
2
votes
1answer
235 views

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 ...
4
votes
1answer
865 views

Which PHP script is overloading my VPS?

Is there a way to get the PHP script filename that is currently hammering my VPS? For example, when I view "top", I see: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7622 itil ...
2
votes
2answers
4k views

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 ...
18
votes
1answer
15k views

Memory Usage Numbers In top/htop

Can someone please explain this top output. Each PHP process is using 30% of the total memory or of the used memory? Furthermore how can it be that the combined used memory across all the PHP ...
0
votes
6answers
1k views

Running really slow on my Linux workstation, need some assistance

I have something weird going on with my workstation, like see it says 42.1%wa, whenever I get to this it becomes so slow, any ideas what can be done, how I can identify what's causing it and all? top ...
16
votes
4answers
11k views

What does %st mean in top?

Here is an example from my top: Cpu(s): 6.0%us, 3.0%sy, 0.0%ni, 78.7%id, 0.0%wa, 0.0%hi, 0.3%si, 12.0%st I am trying to figure out the significance of the %st field. I read that it means ...
1
vote
2answers
3k views

Debian - top(1) in batch mode, but sorted by PID

I want to run top is batch / non-interactive mode with -b. However I want the output sorted by PID. What command line option does this? I'm using Debian Lenny and the -o pid option from here ( http://...
0
votes
1answer
673 views

Seeing when was the last time a process ran in linux

Looking at top output on my linux server, I see a root owned process that is always in S mode whenever I look. How can I find out when was the last time it actually ran on a cpu and did something? ...
0
votes
1answer
1k views

Troubleshooting why my SSH sessions hang for a couple of seconds

I'm logged in to my development box via SSH (using PuTTY on my laptop) and periodically, the session would just hang for a couple of seconds then becomes responsive again. I have not been able to ...
1
vote
2answers
2k views

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 ...
31
votes
1answer
16k views

Why does htop have three load averages?

On htop, it shows three load averages, one bold, one normal, one red. What do they signify?
1
vote
2answers
993 views

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....
2
votes
4answers
1k views

Is there an easy way to insert data/time in front of a log file with just shell scripting?

Say I want to monitor memory usage on a java process overnight. I can do something like top | grep java > out.log I will get a log file with a whole bunch of lines. Is there an easy way to get a ...
1
vote
3answers
196 views

Odd MySQL zombie task

It seems to me like there's always 1 task in SQL that runs on my server at work and my personal stuff that gets "stuck" and keeps running forever. PID USER PR NI VIRT RES SHR S %CPU %MEM ...
10
votes
5answers
19k views

How to have linux top command show memory summary in megabytes not kilobytes

Redhat EL5 I had my top configured the just the way I like showing the memory summary and swap summary in MB. I had to close my shell and then when I re-opened it, it is back showing in (default ?) ...
2
votes
4answers
3k views

Linux high memory usage (top total mismatch)

I havea poor mans vps - 256MB dedicated RAM. I have installed LAMP. No website is currently UP on the server yet. The memory usage is still 225MB (only 31 MB free). I have measured using top and ...
1
vote
3answers
3k views

Apache processes all stuck in lockf state (via top)

I have an Apache server that's accessing source code over NFS (from a separate dedicated NFS file server). Periodically the Apache server stops accepting new requests (effectively bringing down the ...
0
votes
6answers
2k views

Ubuntu Linux, interpretation of top command result

I am a newbie to Linux OS and I had trouble on my drupal based sites which had turned out to be really slow. I am using 2 separate servers for hosting and MYSQL. On preforming the top command, I got ...
1
vote
7answers
2k views

Is it possible to change the cmdline of a running process (to more easily identify it in top, for example)?

I run a number of linux servers with VMware Server 2. When their response time is not so hot or the load average goes up, I open up top to see what's going on, or for our production servers I have top ...
209
votes
2answers
76k views

What exactly do the colors in htop status bars mean?

By default, htop shows colored status bars for processors, memory, and swap. From left to right, the bars are colored green, blue, yellow, and red depending on some thresholds. What does it mean when ...
4
votes
5answers
1k views

Linux server performance profiling - how to see what caused high load

If a server is experiencing high load, I use top and similar tools to troubleshoot why. However, this is only effective if I can analyze while the server is experiencing the problem. What are some ...
0
votes
1answer
631 views

What do all the numbers in `top` mean?

I've been using top command for a while, and I know what some numbers mean, but most of them are still a mystery. I would like to have an explanation about what each value means. I googled for this, ...
1
vote
2answers
7k views

Top shows load of 2.5: how can I find out which processes are waiting for the CPU?

I have a linux box hosting a pretty low-traffic site. It's an Amazon EC2 "small" instance, running Ubuntu 10.04. When I run "top" on it, I usually see a load of between 2 and 3, which in my ...