Surendra Sharma

Surendra Sharma

Search This Blog

Thursday, April 13, 2017

Android : Windows of mobile world

Created presentation on why people called Android as windows of mobile world


Wednesday, April 5, 2017

How to recycle application pool automatically in IIS


What will you do if you get a call on holiday or weekend that your website hosted server is consuming 95% CPU utilization due to IIS worker process and within a few minutes, your server is going to crash and your website will not be accessible?


You have to access the server and recycle your app pool, right?

Can we provide some automated solution for this?

Yes, fortunately IIS can take care of this situation.

Let's say if CPU utilization reached to 92% and it remains at 92% or more for next 3 minute then we want IIS should recycle application pool automatically.

Follow below steps to achieve this.

  • Open IIS. 
  • Right click on your website application pool and select “Advance Setting…
  • Locate CPU section 
  • Put Limit (percent) as 92% 
  • Set Limit Action at KillW3wp 
  • Set Limit Interval (minutes) at 3 
  • Click Ok

That's it.

Here is a screenshot for quick understanding

App Pool Recycle automatically
App Pool Recycle automatically

Now no manual intervention is required. You can enjoy your weekend. But remember this is not a a solution, this is just a work around for the problem. You should find the root cause of the problem.