I have an intermittently occurring problem with my application. It is always under relatively high load (10-50 req/second). Most of the time it runs fantastic, with CPU < 10%. Occasionally (about once per week) it will suddenly ramp up to 100% CPU over the course of about 3 minutes and then stay there causing the server to become unresponsive until I kill the w3wp.exe. I'm continuing to try to debug this problem. In the mean time I need a temporary solution.
Is there a service or tool I can use to monitor the w3wp.exe and automatically kill the process if it goes above 80% utilization for a period of time?
Best Answer
IIS can take care of this by itself; you can configure an application pool to be recycled (i.e. restarted) when its CPU usage stays above a certain threshold for a given period of time.