Auto kill system process when exceeding 80% CPU in windows 2000

Besides the script solution, is there any other quick way of setting the Windows 2000 server to auto kill certain process (in this case dllhost) when it exceeds certain amount of CPU usage?? (in this case 80%)
LVL 1
celticianAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

QlemoBatchelor, Developer and EE Topic AdvisorCommented:
You can set up Performance Monitoring to monitor specific processes, and trigger an action if the cpu load exceeds 80% for say 1 minute.
I can't remember the exact steps, as I did that only a long time ago.
0
celticianAuthor Commented:
Thanks... if anyone can tellme how... its so diffficult to find info about win 2000 over the internet... i understand its obsolete but we need it so bad :(
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
I have an old 2000 server still running, so I'll try to figure out again how to do it.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

celticianAuthor Commented:
Oh great thanks, it will be very helpful, you can try with the other script as well that another expert has made and is still open in another question :)
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
0
celticianAuthor Commented:
Yup thats the other question.
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
1. Create a batch file killing the process by name. There is no way to know the PID from the PerfMon task, so you'll have to kill all, or add effort to determine the correct process in the batch. E.g.:
   @c:\tools\pskill dllhost.exe


2. Create a PerfMon Warning task. The description is a little blurry, sorry for that, because I only have a non-English OS.
Start PerfMon.exe
Open Performance Logs and Warnings » Warnings
Create a new warning via Context Menu. Name it e.g. "DllHost overload"
Add a performance counter for "Process", "dllhost", "CPU time (%)", and close the subform.
Set the warning trigger to "greater as", "80"
Set the interval to something reasonable, like 15 seconds. The average CPU load for this interval needs to go beyond the limit to trigger the action, so in this case the load is over 80% for over 15 seconds.
In the "Action" tab (the next one), check what you think is useful, and the last option to execute an application. Provide the batch file created above.
optionally you can set a time schedule the task should run. If you set nothing up in the last tab, the task will run from now forever, even surviving reboots.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
celticianAuthor Commented:
Thanks for your help, its a nice solution, we have tried some others too.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.