CPU usage for specific process

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

CPU usage for specific process

Post by Kris »

Would it be possible to monitor the CPU usage of one specific process instead of the total CPU load?
So I can terminate that process if it consumes more than 50% of the total CPU?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Use Performance Counter test method and Process\% Processor Time counter

Regards
Alex
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

Post by Kris »

I'm not sure what you mean, but when I try that I get the error:
The specified instance is not present.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You need to specify process name and server name, I did not specify this in my answer because I don't have any idea what exactly server/process do you want to check.
Perhaps you specified invalid process name.

Actually HostMonitor allows you to select couner, you just need to click small button beside "counter" field in Test Properties dialog.

If you don't have any idea what is Perfromance Counter test, please read the manual or visit our web site for details
http://www.ks-soft.net/hostmon.eng/mfra ... erfcounter

Also, its good idea to read Microsoft manuals about Performance Counters and WMI. These technologies allows to check so many parameters... its like SNMP just takes more system resources.

Regards
Alex
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

Post by Kris »

Well, I have a server in my domain called "AS04".
On that server there's a process called "MailImport.exe".

What I need to know is the % cpu usage of that specific process (as it shows in the task manager)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

So, what exactly is the problem?
Do you need step by step instructions?

variant #1:
- open HostMonitor GUI
- click menu Test -> New -> Performance Counter
- click button beside "counter" field"
- type AS04 in appropriate field
- select Process in "Performance object" field
- select "%Processor Time" counter
- select MailImport in instances list
- click Ok, return to Test Properties dialog
- select Alert when value is > then 50
- click Ok button to save test item

variant #2
- open HostMonitor GUI
- click menu Test -> New -> Performance Counter
- type \\AS04\Process(MailImport)\% Processor Time
- select Alert when value is > then 50
- click Ok button to save test item

Also you need to specify account for connection using "Connect as" test property or better use Connection Manager.
Please read the manual for details.

Regards
Alex
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

Post by Kris »

Thanks Alex!

Works perfect. I guess I didn't quite caught on to the guided setup.
I do now though, and it opened up a world of new usable tests for us.

Thanks again!
Post Reply