PDA

View Full Version : How to measure cpu usage?


Alex
03-15-2003, 10:34
I'm plan on using my server to host websites. How do I check which sites are putting on the most load? A large forum can cripple a server.

thedavid
03-15-2003, 12:14
Alex,

Do you have cpanel on your server? If so, that has a nice utility for doing just what you want. If not, you may consider using the 'top' command during high load periods to see which processes are taking the most resources.

-David

Alex
03-15-2003, 17:21
Yup I got Cpanel/WHM. What utility is it?

thedavid
03-15-2003, 18:24
Alex,

It's inside of WHM under "CPU/Memory/MySQL Usage" inside of the "Server Status" subheading.

-David

quicksols
03-15-2003, 20:27
OK here is my issue Since this topic is related so i dont want to open a new thread.
I m hosting some client who are using forums :(
Problem is that some time httpd takes 90% CPU resource. Is there a way to limit it
like a httpd process shuld killed if it stay for umm 5 seconds.
is theere a way
Thanks

Alex
03-29-2003, 14:03
Can't find it David

All I can find is "show current CPU usage" under "system health"

Is it towards the top or bottom?

brandonk
03-29-2003, 14:17
Alex it is at the top.

trakwebster
03-30-2003, 13:51
Alex, Brandon,

I would guess that Alex you are looking at a 'reseller' WHM, and brandon you are looking at a 'server' WHM.

The reseller WHM shows only 'server status' and 'server information' in the Server Status section.

The server WHM shows those two, plus 'apache status' and 'cpu/mem/mysql usage history' sections.

-- Arthur Cronos from Voltos

Alex
04-21-2003, 15:47
Nice I found it.

What is the "load" unit people keep on referring too? Is it % of CPU usage?

trakwebster
04-21-2003, 17:09
The 'Server Load' of 1.0 seems to correspond, in theory, to a CPU which is 100% in use.

It cannot be an actual measurement, because it can show amounts like 1.25, and obviously the CPU cannot really be busy every millisecond, and then busy some more milliseconds.

Therefore, it must be some sort of calculated estimate. Maybe they sample every now and then, and then calculate. Maybe it's infered by some other process which is supposed to correspond to how busy the CPU is.

Whatever.

In fact, though, it would appear that a server load of 1.0 suggests that the server is either working at 100T of what it can, or of what it should.

-- Arthur Cronos at Voltos

Alex
04-22-2003, 11:19
So how do I calculate the server load w/ Cpanel?

Matt [MainArea]
04-22-2003, 13:52
The 'Server Load' of 1.0 seems to correspond, in theory, to a CPU which is 100% in use.
No, server load is the number of processes running at a given time (or something to that effect - it's measured over a certain amount of time... or something :) ). Just go to Service Status in WHM, or you can type "uptime" or "top" over SSH.

- Matt