IIS7: Worker process reached its allowed processing time limit

You just lost your ASP.NET session object and your app restarted? Check the Event Log for the following message:

A worker process with process id of ‘23232’ serving application pool ‘ASP.NET v4.0’ has requested a recycle because the worker process reached its allowed processing time limit.

I’ve already posted the solution for this for IIS6. It’s basically the same for IIS 7.

Go to the Application Pools section of your IIS. Right-click on the right pool and choose Recycling.

IIS7 Application Pool recycling

Here you can adjust when you want you Application Pool to recycle. No recycling is not really recommended. So either out put in a very high number of requests or you choose fixed time when you assume there are no users on your site.

Specify a time for recycling

We decided to just recycle during the night.

What would be nice is to get some kind of notification, so one could save all ASP.NET sessions and then restore them afterwards.




Ähnliche Beiträge


6 Kommentare zu “IIS7: Worker process reached its allowed processing time limit”



  • Recycle worker process IIS 6.0 am 4. August 2010 6:46 am Uhr

    […] Same problem with IIS7 […]


  • Arnold am 10. September 2012 8:16 am Uhr

    but why the problem happens? we know that the error go away after recycling the app pool. but why we get this error?


  • Rémy Blättler am 11. September 2012 3:41 am Uhr

    This is a setting. Every worker process is being reset after a certain time. This is to avoid memory leaks and things like this I guess.


  • Ray am 9. November 2012 2:15 pm Uhr

    “save all ASP.NET sessions and then restore them afterwards”

    You can use in-database session management for this. You are probably using in-memory sessions hence why session data is lost when app pool recycles.

    When app pool recycles the app pool process stops, and memory allocated to that process goes *poof*


  • Rémy Blättler am 11. November 2012 10:40 am Uhr

    @ray: Absolutely. But not everybody wants to setup a DB store for this. Or even has SQL server running.


  • ganaysa am 8. September 2014 7:27 am Uhr

    Thank you for the solution


Leave a Reply

Your email address will not be published. Required fields are marked *



*