Home All Groups Group Topic Archive Search About

Monitoring cpu usage

Author
18 Mar 2005 3:09 AM
Al Cadalzo
How do I use performance counters to monitor CPU Usage?  I want to send an
alert via e-mail when CPU usage goes over a certain amount.  I need to write
an app to monitor several processes.  Occasionally one of the processes will
get stuck on a regex match (catastrophic backtracking) and we need to know
when it hangs.

Thanks.

Author
18 Mar 2005 3:48 AM
Grant_Aust
Hi Al,
You don't need to write an application to do this.   The Performance utility
in the admin tools folder does this for you.

Open the console on the left hand side of the tool and look for Alerts.

Create a new Alert and add the object "Process" and look for the instance
which will be the process you want to monitor.

Jobs done.
Author
18 Mar 2005 12:45 PM
Al Cadalzo
Grant,
Thanks for showing me that nifty tool.  I haven't been able to trigger an
alert yet, but I'll keep trying.  I'm using 'Processor > % User Time >
_Total.  I'm trying to find the one that corresponds to 'CPU Usage' shown in
Task manager's Performance tab.

Thanks,
Al

Show quote
"Grant_Aust" <news-i-dont-like-spam@carthew.net> wrote in message
news:OvrLp12KFHA.2648@TK2MSFTNGP14.phx.gbl...
> Hi Al,
> You don't need to write an application to do this.   The Performance
> utility in the admin tools folder does this for you.
>
> Open the console on the left hand side of the tool and look for Alerts.
>
> Create a new Alert and add the object "Process" and look for the instance
> which will be the process you want to monitor.
>
> Jobs done.
>
>
Author
20 Mar 2005 11:42 PM
Grant_Aust
Al, you don't want "Processor > % User Time > _Total", you want "Processor >
% Processor Time > Your Process".   You can select _Total if you want the
whole computers total processor time.

% User Time will show the CPU Usage for only user processors.

Take note of the explain button, very handy.
Author
21 Mar 2005 7:21 PM
Al Cadalzo
Grant,
Yes, that's what I wanted.  Thanks once again.
Al


Show quote
"Grant_Aust" <news-i-dont-like-spam@carthew.net> wrote in message
news:uma8IaaLFHA.3500@TK2MSFTNGP14.phx.gbl...
> Al, you don't want "Processor > % User Time > _Total", you want "Processor
>  > % Processor Time > Your Process".   You can select _Total if you want
> the whole computers total processor time.
>
> % User Time will show the CPU Usage for only user processors.
>
> Take note of the explain button, very handy.
>
>

AddThis Social Bookmark Button