5

When I setup an application pool for my web app in IIS 6 it defaults the worker process to recycle in 1740 minutes (29 hours).

Does this recycle happen even if there is activity on the web site or only if there is inactivity for 29 hours?

Guy
  • 65,082
  • 97
  • 254
  • 325
  • Good question, but no answers below really answer your question. I'm still confused. If a recycle takes place after 29 hours, will it allow requests to finish or not? – JL. Feb 12 '10 at 11:33
  • @JL: This may be helpful: http://blogs.msdn.com/b/david.wang/archive/2005/09/19/why-do-i-lose-asp-session-state-on-iis6.aspx Basically, IIS will continue to process requests (assuming your recycling is overlapped), but the application will lose user session state unless specially designed to save the state to disk. – Mashmagar Jan 27 '11 at 15:00

2 Answers2

4

Read the Fine Manual

in particular, Configuring Worker Processes for Recycling (IIS 6.0)

Cheeso
  • 189,189
  • 101
  • 473
  • 713
  • 1
    Someone downvoted me for providing a direct link to the manufacturer documentation that describes in detail when IIS worker processes get recycled? – Cheeso Feb 12 '10 at 23:17
4

This depends on how your worker process recycling is configured. There are several ways to configure it and each one has different implications.

  • Elapsed Time: In this mode the process will recycle after a period of time no matter how many requests come in
  • After a request threshold is reached
  • On Demand through the IIS Manager Tool

You can find detailed information on this topic at the following link

edosoft
  • 17,121
  • 25
  • 77
  • 111
JaredPar
  • 733,204
  • 149
  • 1,241
  • 1,454