Monitoring cpu usage

  • Thread starter Thread starter Al Cadalzo
  • Start date Start date
A

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.
 
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.
 
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
 
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.
 
Back
Top