Link to home
Start Free TrialLog in
Avatar of norcalty
norcaltyFlag for United States of America

asked on

How to restart application on server via batch/script when CPU usage high

We have a server with a program called autoview on it.  This is older and unsupported by the manufacturer as we've not upgraded to the latest version.  It tends to max out the CPU about 1-3 times per day and we have to go in and manually restart the application.

This guest OS is on a VMWare ESX system. (not sure if I can have that trigger a script)

I would like to somehow have either ESX trigger a script to run or a script to determine if the CPU is at 90% or higher for more than 5 minutes that it would then remotely run the script that kills that application and restarts it.

If ESX cannot do this then any script that runs local on the box would work as well.

This is not a service, but an application.

We start it with this script on the local machine:

@start e:\jVue\bin\jVueServerX.exe -standalone %*
SOLUTION
Avatar of becraig
becraig
Flag of United States of America 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
ASKER CERTIFIED SOLUTION
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