Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Monitor CPU and Kill Runaway Process

Status
Not open for further replies.

Fnurky

Programmer
Sep 8, 2002
19
AU
Can anyone help me with a utility that will monitor cpu usage on W2k server and after a specified period (n), kill a process (x) that has used more than (y)% cpu over that period?

dllhost.exe is maxing out every now and then (even on weekends when no-one is using the system) and we'd like to be able to kill it if it gets away.

Thanks
 

a resolution to this might be to re-register the dllhost application within the server.

a workaround would be a batch script. utilise perfmon to trap the correct factors and then use the kill.exe from the 2k resource kit to kill the pid in question.

a better workaround would be wscript/vbscript and call the above functions from the apis (check msdn.microsoft.com for dev info.)..

the above url should point you in the right direction for scripting. There, however, are a few programs on the market that will do the job for you, a quick search on google.com for along the lines of cpu usage kill process auto monitor should give you the desired results.

Hope thats of some help

Cheers, Andy.

Andy Simpson CNE, MCSE, CCA, CCNA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top