How to know Cpu Utilization for a process, service or in General 
Author Message
 How to know Cpu Utilization for a process, service or in General

Hello,

I have one service at my server which some time goes out of contol and
Starts taking 100% of cpu utilization. i like to make a program which
restart the service when ever that happens.I know how to stop and
start the service through ServiceController but first i like to quary
if service is taking more cpu then it suppose to.

Any help will be appriciated.

TIA



Tue, 18 Jan 2005 11:19:12 GMT  
 How to know Cpu Utilization for a process, service or in General



Quote:
> Hello,

> I have one service at my server which some time goes out of contol and
> Starts taking 100% of cpu utilization. i like to make a program which
> restart the service when ever that happens.I know how to stop and
> start the service through ServiceController but first i like to quary
> if service is taking more cpu then it suppose to.

You can use the Performance Counters to keep an eye on it, and
WMI (System.Management) probably provides a way as well.

However, don't you think it'd probably be smarter to figure out
why your app spins out of control rather than writing a program
to monitor it?

-c



Tue, 18 Jan 2005 11:27:57 GMT  
 How to know Cpu Utilization for a process, service or in General

If i have designed that app i would have fixed it by now.
It was designed by our in house programmer and he is, lets just say
not very good at doing what he does. I am a net admin i do programming
as a hobby.In order to keep my servers running in perfect shape i have
to do everything.I cant fix the application but i can somehow stop it
from destroying my servers.

Thanks for help
On Fri, 02 Aug 2002 03:27:57 GMT, "Chad Myers"

Quote:



>> Hello,

>> I have one service at my server which some time goes out of contol and
>> Starts taking 100% of cpu utilization. i like to make a program which
>> restart the service when ever that happens.I know how to stop and
>> start the service through ServiceController but first i like to quary
>> if service is taking more cpu then it suppose to.

>You can use the Performance Counters to keep an eye on it, and
>WMI (System.Management) probably provides a way as well.

>However, don't you think it'd probably be smarter to figure out
>why your app spins out of control rather than writing a program
>to monitor it?

>-c



Tue, 18 Jan 2005 12:47:53 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. CPU Utilization

2. How to get CPU utilization in w32

3. total system cpu utilization

4. CPU utilization and Packet count...

5. CPU Utilization

6. CPU utilization for NT

7. CPU utilization

8. CPU and page file utilization in Win95

9. Windows 2000 CPU Utilization

10. CPU Utilization Problem.

11. CPU utilization in Win98

12. How to find CPU Utilization with SNMP?

 

 
Powered by phpBB® Forum Software