Link to home
Start Free TrialLog in
Avatar of Robb Hill
Robb HillFlag for United States of America

asked on

powershell - out of memory issues on process.exe

How would I write a powershell script to detect the following:


Lets say I have a process....we can call it process.exe for now.

It runs on a server.

Usually we run about 4 instances of process.exe at at a time.

What I find is sometimes (probably due to a memory leak in the application)

the process stops working in the application.

It appears in task scheduler to be running fine with no errors...it does seem to have a high memory usage in task scheduler...but I can have it running on a different server at that level of memory usage and its fine.

Either way if I recycle all of these processes...by killing the process and restarting it for each one.

Everything works ok from there.

Any ideas on how I can truly watch for this issue and react.  I do not have the resources at this time to correct this root cause but a really good bandaid would be good right now.


Thanks
SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany 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
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