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.

294 questions
557
votes
3 answers

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 the Memory bar has a small level of green and…
tobym
  • 6,011
  • 3
  • 16
  • 9
164
votes
7 answers

What does Virtual memory size in top mean?

I am running top to monitor my server performance and 2 of my java processes show virtual memory of up to 800MB-1GB. Is that a bad thing? What does virtual memory mean? And oh btw, I have swap of 1GB and it shows 0% used. So I am confused. Java…
kapso
  • 1,983
  • 4
  • 14
  • 7
132
votes
6 answers

Show full process name in top

I'm running a Rails stack on Ubuntu. When I call ps -AF, I get a descriptive process name set by the Apache module like 00:00:43 Rails: /var/www... which is really helpful in diagnosing load issues. But when I call top, the same process shows up…
Ben K.
  • 2,149
  • 4
  • 17
  • 15
71
votes
1 answer

Why does htop have three load averages?

On htop, it shows three load averages, one bold, one normal, one red. What do they signify?
chrism2671
  • 2,549
  • 9
  • 34
  • 45
60
votes
5 answers

How to understand the memory usage and load average in linux server

I am using a linux server which has 128GB of memory and 24 cores. I use top to see how much it is used. Its output is pasted at the end of the post. Here are two questions: (1) I see that each of the running processes occupies a very small…
Tim
  • 1,467
  • 3
  • 25
  • 38
47
votes
4 answers

Linux - How can I see what's waiting for disk IO

I have a server that has a really high load. Nothing is jumping out at me in terms of CPU usage, and it's not swapping. I think it's cause some processes are waiting for disk IO, and I want to see what's waiting. Is there any programme that'll show…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
34
votes
8 answers

wa (Waiting for I/O) from top command is big

I have a forum with a lot of visitors, Some days the load increase to reach 40 without increase of the number vistors. As you can see from the below output, the waiting time is high (57%). how do I find the reason for that? The server software is…
usef_ksa
  • 805
  • 4
  • 11
  • 16
33
votes
2 answers

How to get top command output to show rake arguments?

In the past, all of our servers have automatically shown command arguments passed to rake when we view them in top. For example: But on this particular server, we get this instead (picture is top running, showing the rake command, but not showing…
wbharding
  • 421
  • 1
  • 4
  • 8
33
votes
5 answers

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 steal cpu and it represents time spent by the…
Ben
  • 555
  • 2
  • 5
  • 7
28
votes
2 answers

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. Everything is normal: about 20 PHP-FPM processes, each…
Googlebot
  • 1,007
  • 2
  • 15
  • 29
28
votes
1 answer

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 processes far exceeds my system memory? Is this the…
Mem
  • 301
  • 2
  • 4
  • 5
20
votes
6 answers

Find out what high CPU usage apache process is actually doing?

Currently having a few issues with our server where, intermittently, we seem to get apache processes which just run and run, taking up 100% CPU. When running top, we see the following: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ …
BT643
  • 551
  • 3
  • 9
  • 21
20
votes
2 answers

How is memory usage reported in Linux?

Using ps, I can see the size, the vsize (same as top's VIRT?), and the rss (same as top's RES?). (One more I see in top is SHR.) Could someone summarize for me what these different fields mean?
Jim Hunziker
  • 1,802
  • 4
  • 17
  • 18
20
votes
6 answers

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 ?) kilobytes. I have scoured google, and top help and…
Michael Irey
  • 209
  • 1
  • 2
  • 3
17
votes
4 answers

10 GB of RAM unaccounted for by top

Here's my free and smem output: danslimmon@bad-server:~$ free -m total used free shared buffers cached Mem: 30147 29928 218 6 4 3086 -/+ buffers/cache: 26837 …
danslimmon
  • 303
  • 1
  • 8
1
2 3
19 20