Questions tagged [top]

top is a Unix/Linux/BSD program to show what processing are running. It can show the top users of CPU or memory.

302 questions
1
vote
2 answers

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 May08 0:00 [kthreadd] root 3 0.0 0.0 …
OJ278
  • 95
  • 1
  • 6
1
vote
1 answer

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 spikes into 10.00 and all I have running are simple…
Tiffany Walker
  • 6,681
  • 14
  • 56
  • 82
1
vote
1 answer

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. What could cause a server to spend so much CPU…
JMC
  • 506
  • 6
  • 23
1
vote
1 answer

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 answer my question. Today I was sent a screenshot by…
Buzu
  • 15
  • 3
1
vote
2 answers

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; server 66.0.0.18 weight=6; } server { listen…
Dmitro
  • 159
  • 1
  • 5
  • 12
1
vote
4 answers

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 takes about 10 seconds to load and running top…
fire
  • 113
  • 1
  • 2
  • 5
1
vote
3 answers

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, 0 stopped, 0 zombie Cpu(s): 77.5%us, 14.7%sy, …
Tola Odejayi
  • 334
  • 1
  • 4
  • 19
1
vote
1 answer

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 apache2 15701 www-data 20 0 205m 11m 4424 S …
Kyle Cureau
  • 1,537
  • 3
  • 11
  • 15
1
vote
2 answers

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: sort by memory usage Cpu(s): 0.8%us, 1.0%sy, …
ric
  • 11
  • 3
1
vote
1 answer

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 %100! who's lying here?
SJ.Jafari
  • 204
  • 1
  • 4
  • 8
1
vote
1 answer

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 should be 400% (because of 4 cores) in top command,…
flypen
  • 205
  • 1
  • 3
  • 7
1
vote
1 answer

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 and see how we can try and avoid it. I can decipher…
donrosco
  • 130
  • 5
1
vote
2 answers

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://www.unixtop.org/man.shtml ) doesn't work.
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
1
vote
3 answers

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 TIME+ COMMAND 890 mysql 20 0 326m 54m…
Ben
  • 3,800
  • 18
  • 65
  • 96
1
vote
3 answers

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 server), and when I look into it, it's filling up…
Harry
  • 221
  • 1
  • 5
  • 9