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?
The IIS application pool for Taskmaster Web must be scheduled to recycle daily to ensure optimal system performance.
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.
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).
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With