Web Hosting Talk







View Full Version : how to monitor a user on using of CPU resource


kktsang
08-23-2002, 02:50 AM
Hi all,

I want to find our the used CPU resource group by each user. That means I want to view the statistics on CPU resource.

Any tools can do so??

Thx !

Ryan

chrisb
08-23-2002, 02:55 AM
Try this unix command

ulimit

archie2
08-23-2002, 01:08 PM
Is it on Windows OS?

kktsang
08-23-2002, 03:54 PM
linux

hbouma
08-23-2002, 05:41 PM
Originally posted by chrisb
Try this unix command

ulimit

Doesn't that limit how much CPU a user gets rather than report how much CPU a user consumed?

Hal

kktsang
08-24-2002, 01:06 AM
Originally posted by hbouma


Doesn't that limit how much CPU a user gets rather than report how much CPU a user consumed?

Hal

the latter one

combs
08-24-2002, 12:05 PM
does that work with linux?

hbouma
08-24-2002, 12:48 PM
Originally posted by kktsang


the latter one

Man pages for ulimit has this:

limit, ulimit, unlimit - set or get limitations on the system resources available to the current shell and its descendents

This does not report what resources a process/user has already consumed. It just gets or sets the limits placed on a process/user.

So if I'm missing something here, how do I find out if say Joe User has used 500 seconds of CPU time?

Hal