Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly does Recycle app pool mean to the application

In the properties, there is a checkbox checked that says "Recycle worker processes", which is set to 1740 minutes.

What exactly does it mean to my asp.net code? Will everything be gone from the static variables or the Session/Application variables?

What exactly does recycle mean to the code?

like image 512
AngryHacker Avatar asked Oct 26 '09 16:10

AngryHacker


People also ask

How often should you recycle application pool?

The IIS application pool for Taskmaster Web must be scheduled to recycle daily to ensure optimal system performance.

What exactly is an application pool What is its purpose?

An application pool defines a group of one or more worker processes, configured with common settings that serve requests to one or more applications that are assigned to that application pool.

How long does it take to recycle app pool?

By default, an IIS application pool (or “AppPool”) recycles on a regular time interval of 1740 minutes, or 29 hours. One reason for this time interval is that application pools don't recycle at the same moment every day (every day at 07.00 for example).

Does recycling app pool clear session?

As an aside you should schedule any application pool recycles to occur during off-peak hours, as you've realised it will clear any active sessions and will break the user experience if the application relies on session storage.


1 Answers

Recycle means start a new set of processes to handle new requests for applications in the pool. Any outstanding requests will complete normally (assuming they don't take too long) at which point the old set of processes for the pool will terminate in an orderly fashion.

Hence static variable values and values stored in the application object will be lost, also if the session is stored in-proc then the session values are also lost.

like image 91
AnthonyWJones Avatar answered Nov 15 '22 07:11

AnthonyWJones