hbouma
08-08-2002, 06:48 PM
What tools/methods does everyone here use to track how much CPU a website user is consuming on a server? Its easy to monitor bandwidth and drive space with the tools available, but I'm not sure how one tracks cpu usage. Thanks for your answers in advance!
Hal
The Laughing Cow
08-08-2002, 07:11 PM
Not sure if this is any help, In Windows 2000 you can set maximum CPU and memory consumption limits on each site. On Linux whilst I don't know much I believe something called RPROCUSEAGE or something along those lines of a name can set this up. I saw it in the H-sphere control panel but don't know if it's a H-sphere thing or a part of Linux.
hbouma
08-09-2002, 11:52 AM
Originally posted by The Laughing Cow
Not sure if this is any help, In Windows 2000 you can set maximum CPU and memory consumption limits on each site. On Linux whilst I don't know much I believe something called RPROCUSEAGE or something along those lines of a name can set this up. I saw it in the H-sphere control panel but don't know if it's a H-sphere thing or a part of Linux.
Thats for limiting CPU usage so that a client can't take over the system. I'm asking about how to monitor how much CPU a website is using. Thanks for the input!
Hal
The Laughing Cow
08-09-2002, 11:54 AM
Oh Sorry, I got the two mixed. I assumed if you wanted to monitor the CPU usage, you wanted to check that clients weren't exceeding there fair share of the CPU.
no1v2
08-09-2002, 01:33 PM
If you're using FreeBSD, check out /etc/login.conf (do a man login.conf). It's one of the features that makes me really like FreeBSD more than Linux ;) I don't know if it works on, say, child processes of apache that are owned by the user, or only their shell sessions (and any processes ran from them).
apollo
08-09-2002, 03:46 PM
well, the problem is when users are not running scripts with their permissions, but with www/nobody or anything like that... This is not that easy as it sounds...