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
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
2k 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
117 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 ...
2
votes
2answers
3k 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 ...
0
votes
1answer
1k 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
843 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
316 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
5k 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, ...
1
vote
4answers
3k 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
495 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, ...
4
votes
1answer
279 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
2k 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 ...
1
vote
1answer
2k 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
86 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
334 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, ...
2
votes
1answer
257 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
507 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
192 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
403 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 ...
0
votes
1answer
151 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 ...
1
vote
3answers
1k 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
500 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 ...
1
vote
1answer
2k 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
245 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
98 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
1k 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
669 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 ...
1
vote
3answers
221 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
310 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
157 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 ...
-1
votes
2answers
141 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
258 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
398 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
2k 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
714 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 ...
4
votes
4answers
3k 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 ...
4
votes
7answers
4k 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
260 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 ...
3
votes
2answers
252 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 ...
0
votes
1answer
350 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 ...
7
votes
3answers
16k 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 ...
2
votes
2answers
1k 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
569 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
201 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
1k 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
785 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 ...
2
votes
1answer
209 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 ...
2
votes
1answer
452 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
2k 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 ...
13
votes
1answer
8k 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 ...