Link to home
Start Free TrialLog in
Avatar of rdbrown215
rdbrown215

asked on

Automatically End Windows Process based on CPU Usage for given time period.

I have a process which will ocassionally hang always utilizing exactly 25% of the processor on Windows 2003 SP  Citrix Presentation Server 4 server.  I know what the process is and I know it can be ended without harm. Does anyone know a utility or script that will kill the process automatically when the processor usage is 25% for more than 30 seconds or some other time interval. The problem arises when 2 or 3 get stuck and then the processor is at 100% utilization before you know.
Avatar of SysExpert
SysExpert
Flag of Israel image

I would start here

http://www.microsoft.com/technet/sysinternals/default.mspx
MS bought Sysinternals, and there are some excellent utilities there that by themselves or in combination may be able to do this.

Perhaps exporting process list to a text file and using a DOS/windows script to parse it and set a flag file that tells another process when to shut it down.

I hope this helps !
Avatar of rdbrown215
rdbrown215

ASKER

I have used Sysinternals tools, I appreciate your response. I was looking for something a little more direct but I will keep this in mind.
ASKER CERTIFIED SOLUTION
Avatar of SysExpert
SysExpert
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you can always use perfmon to alert and run a program

if you get it to run taskkill you can get a process to terminate on your computer

type taskkill /? into a command line to get windows help