A command-line system monitor tool that produces a frequently-updated list of processes.
4
votes
3answers
388 views
why does htop meter show >90% while table is 0.0%?
Why do the progress meters across the top of the screen in htop show CPU usage consistently above >90% while the numbers in the table below show a nearly idle system with CPU usage and load average at ...
4
votes
4answers
2k views
How do I get “top” command to wrap its output?
The "command" column gets truncated by the width of the screen and I am unable to see the last part of it.
I have tried to reduce the font size so I can see a longer part of the command line but it ...
2
votes
3answers
285 views
How can I keep track of what's using the most CPU?
I use nagios to monitor my server. Once in a while I'll get a report that the CPU load is warning / critical, etc. Usually this happens at some odd hour or when I don't have the tools to immediately ...
3
votes
2answers
986 views
100.0%sy with poor disk performance
I have RHEL 5.4 kernel 2.6.18-164.el5 and I am experiencing very bad disk performance that happens randomly during working with Oracle.
Nothing appears in the logs.
When it happens, I see one CPU ...
4
votes
1answer
2k views
Why does top report the incorrect CPU usage?
I have a machine with Intel(R) Xeon(R) CPU E5520 visible as 16 logical cores (8 with HT). If I run something to eat CPU time (single threaded) top correctly reports 100% CPU usage for the process but ...
8
votes
3answers
2k views
How can I receive top-like CPU statistics from the shell?
I'm trying to get an accurate read of my used CPU (in percent) from top. This is the command I'm running for testing:
top -n1 | awk '/Cpu\(s\):/ {print $2}'
This returns:
10.7%us,
Which is the ...
1
vote
3answers
2k views
Why is apache2 showing up a defunct in the process list?
When I run top I see one line that doesn't look too good:
2475 www-data 20 0 0 0 0 Z 1 0.0 0:00.19 apache2 <defunct>
Why is this process <defunct> and what should I ...
3
votes
2answers
396 views
How is FireFox running on a virtual machine that has no display?
I am using a Red Hat virtual machine, accessible only remotely. However when I use the top command, one of the displayed processes taking up the most memory is firefox, located at ...
3
votes
1answer
201 views
HP-UX SZ limit for ps?
Right so I have a fun little thing that I'm deathly confuzzled about. I have a program that is running and I am getting the following:
using top:
SIZE RES
1639M 359M
using ps:
SZ
20171
...
14
votes
1answer
14k views
In Linux “top” command what are us, sy, ni, id, wa, hi, si and st (for CPU usage)?
When I issue $ top in linux, I get a result similar to this (see here).
One of the lines has CPU usage information represented like this:
Cpu(s): 87.3%us, 1.2%sy, 0.0%ni, 27.6%id, 0.0%wa, ...
9
votes
1answer
2k views
Why the value of VSIZE in top is different from the value of VSZ (Virtual set size) in ps?
I know VSZ in ps is for the total address space allocated for the app and is sometimes aliased as vsize (mentioned in man page of ps on linux), but what's the definition of VSIZE in top? This top ...
8
votes
6answers
3k views
How to make a process invisible to other users?
How could you launch a process and make it invisible to the top command? The process is started by a normal user (not root), and should not be visible to other normal users.
1
vote
1answer
279 views
Where does top / gnome-system-monitor get its information about cpu usage?
I am curious where gnome-system-monitor and top (the command line tool) get their information about the CPU usage in %. Could you please explain it to me?
1
vote
1answer
343 views
Make top shows only server process
Can I make top show info about the web and db servers? Can it be done by piping the pids to the top? They can be many process from every one?!? Or is there any better method for this?
3
votes
1answer
732 views
Why Process CPU % Usage larger than Total CPU Time
When I run the TOP command, a process shows 1208% cpu usage and the total CPU usr time is 81.7% with IRIX mode on. When I change to IRIX mode off, the process shows 99% cpu usage and the total user ...
1
vote
1answer
254 views
Queries about top command
top command shows the process cpu utilization, and it when we sum the cpu utilization of all the processes then it goes greater than 100%. And how can it shows the cpu utilization of each process( ...
10
votes
2answers
2k views
Why does `htop` show more process than `ps`
In ps xf
26395 pts/78 Ss 0:00 \_ bash
27016 pts/78 Sl+ 0:04 | \_ unicorn_rails master -c config/unicorn.rb
27042 pts/78 Sl+ 0:00 | ...
6
votes
2answers
2k views
Understanding top and load average
I'm observing a high load average an certain machine (about 9) in all three load fields. I understand load as the number of processes in state "run" / currently desiring CPU time. Am I correct at ...
3
votes
2answers
442 views
Using top to see processes run by a user on behalf of sudo
If I run top -u username I will see all the processes by a particular user. Is there a way to also see all the processes that the user called via sudo?
6
votes
2answers
2k views
How to select specific processes with 'top'?
In case of one program having multiple instances, running pidof program gives:
`1 2 3`
top -p accepts comma-delimited arguments: 1, 2, 3.
This means that top -p `pidof program` won't work:
...
7
votes
2answers
709 views
How to find out how much memory a program taking
I use htop to watch my processes, but most of services ran are multi threaded, so they are shown on several lines with a % of memory use which in some cases is the same for all, sometimes it varies ...
16
votes
5answers
13k views
How to find which processes are taking all the memory?
I'm looking for somthing like top is to CPU usage. Is there a command line argument for top that does this? Currently, my memory is so full that even 'man top' fails with out of memory :)
4
votes
1answer
144 views
How can I turn off the realtime display of unix command “top”?
I want top to just give me the results when I call it and then exit. How can this be done?
top's manpage does not list any flag for this purpose.
Also, I do not want to use ps -eLf for the purpose.
4
votes
2answers
861 views
Number of running processes show in top
The usual maximum number that I have seen in the "running" field displayed in top(1) is the number of logical CPUs installed in the system. However, I have observed that under Ubuntu 10.04 (not ...
13
votes
3answers
15k views
How to monitor CPU/memory usage of a single process?
I would like to monitor one process's memory / cpu usage in real time. Similar to top but targeted at only one process, preferably with a history graph of some sort.