Monitoring cpu usage

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.
 
G

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.
 
A

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
 
G

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top