When exactly does Application_End get called and how can I manually cause this?

前端 未结 2 916
遇见更好的自我
遇见更好的自我 2021-01-18 03:20

I know that the event handler for this event is called when the application pool is recycled by IIS, but when does that happen? What about if using the built-in Visual Studi

2条回答
  •  情深已故
    2021-01-18 03:59

    Like Nick said, "An application pool will recycle when... some of the recycle limits are hit on the application pool configuration." In IIS you can set the recycling conditions in the application pool settings. You can use fixed intervals (every X minutes or requests), a specific time of day, or memory-based maximums in MB (max virtual memory or max private memory), or a combination of any of these. You can also set an idle time-out in minutes after which a worker process is terminated.

提交回复
热议问题