IIS 7 and Above
Application Pool Recycling
Last post Feb 12, 2018 03:51 AM by mujeebpadikka
Feb 09, 2018 12:04 PM|mujeebpadikka|LINK
Hosting a Web Socket Application in IIS.
I need to keep the application pool running for ever. There will be routine maintenance when we recycle the application pool but there shouldn't have any automatic recycle happening.
By doing three things,
Even after doing above the application pool is recycling after about 35+ hours by saying the application pool reached maximum allowed time of execution.
Will keeping the recycling settings make it never recycle ?
If not what is the ideal way to make sure no automatic recycle happens (Other than any specified memory or CPU limits) ?
Feb 10, 2018 11:37 PM|Rovastar|LINK
Have you set the recycling regular time interval to 0?
by default it will recycle every 29 hours.
Feb 12, 2018 02:38 AM|Yuk Ding|LINK
Not sure if the IIS have any restriction in binary length of the recycle time interval. Maybe the IIS will ignore the bit longer than the parameter length restriction.
So to figure out if this issue is caused by time interval, like rovastar said, modify the Regular Time interval to 0 which means never recycle automatically.
In addition ,could you post the accurate error message? Every time the IIS recyle the application pool, you should be able to find the log entry in event viewer system event.
Feb 12, 2018 03:51 AM|mujeebpadikka|LINK
The issue is fixed as below,
Note : Please note that setting the recycle interval value to anything greater than 29 hours wont work well and it will restart at some random time but setting it to zero seems working.