View Single Post
Old March 27th, 2008, 6:29 PM   #5 (permalink)
twirp
DemonicAngel
Super #1
 
twirp's Avatar
 
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,826 posts
Gave thanks: 26
Thanked 35 times
Quote:
roottails:~# top

top - 18:24:07 up 16 days, 5:35, 1 user, load average: 0.02, 0.01, 0.00
Tasks: 104 total, 2 running, 102 sleeping, 0 stopped, 0 zombie
Cpu(s): 16.7%us, 6.0%sy, 0.0%ni, 77.0%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st
Mem: 1027472k total, 981988k used, 45484k free, 185412k buffers
Swap: 1951888k total, 0k used, 1951888k free, 543728k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11232 miles 21 0 67544 44m 6156 R 29.0 4.5 0:00.87 php5-cgi
11243 miles 20 0 67544 44m 6156 R 49.0 4.5 0:01.47 php5-cgi
16342 www-data 15 0 11064 3260 1280 S 0.3 0.3 0:00.67 apache2
...
It'll show the top processes running at that time.
I have suPHP installed, and if a PHP script is taking up a lot of CPU, it shows the username and yeah...

Hope this helps...
__________________
You wear Vans so high school kids will think that you can skate. He wears Vans because he can skate. TwiRp wears Vans because they were on sale. Pass76 wants Vans.
twirp is offline   Reply With Quote