I have an ASP.NET MVC application deployed on IIS 8.5 in a Web server and I would like to know the differences between these two features for the setting "Idle Time-out action".
If process is suspended, are the memory and resources used by the process removed and freed? I think it is good to remove and free memory used to avoid memory leaks so I usually use Terminate feature.
I think you should choose Suspend
or Terminate
according to your application environment.
Normally, to configure Idle Worker Process Page-Out for a Single Application Pool, we choose Terminate
, to configure Idle Worker Process Page-Out as a Default for Application Pools, we choose Suspend
.
IIS provides the administrator with an option of timing out a worker process that is idle for a specified period of time. This is a good option for sites that are not accessed very often because it frees up system resources when the site is idle. The disadvantage is that the next time the site is accessed, the user will need to wait for the worker process to start again.
In Idle Time-out action
, it provides an option of suspending an idle worker process rather than terminating it. A suspended worker process remains alive but is paged-out to disk, reducing the system resources it consumes. When a user accesses the site again, the worker process wakes up from suspension and is quickly available. When an idle worker process is terminated, the worker process is shut down and the startup period will be longer when the site is subsequently accessed.
I realize that this question is getting "old" in internet time but I did want to point out one thing. While I agree with samwu and upvoted his answer, the OP mentioned in the question and again in a comment above that he wants to avoid potential memory leaks. Suspend will NOT help with that because the process is not terminated so Windows cannot reclaim the "leaked" memory. "Suspend" is to App Pools as "Hibernate" is to your dekstop/laptop. If there is a problem in/with memory and you Hibernate your computer, it will still be there when you come out of hibernation
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