Since June 19 we are experiencing unexplained and undesired recycles of Application Pool worker processes. The Application Pool has a scheduled 3am recycle. But since June 19th we are experiencing additional unexplained daily recycles between 5am and 5:30am. We are not yet able to find the cause or trigger. Not in the IIS Admin settings nor in the Event Logs nor in the Task Scheduler.

We luckily do have a call stack of the recycle, sent by email of IIS Admin:

Current StackTrace (max 30 frames deep):
    0.  ezWeb.Global_asax.Application_End()
    1.  System.RuntimeMethodHandle.InvokeMethod()
    2.  System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal()
    3.  System.Reflection.RuntimeMethodInfo.Invoke()
    4.  System.Reflection.MethodBase.Invoke()
    5.  System.Web.HttpApplication.InvokeMethodWithAssert()
    6.  System.Web.HttpApplication.ProcessSpecialRequest()
    7.  System.Web.HttpApplicationFactory.FireApplicationOnEnd()
    8.  System.Web.HttpApplicationFactory.Dispose()
    9.  System.Web.HttpRuntime.Dispose()
    10. System.Web.HttpRuntime.ReleaseResourcesAndUnloadAppDomain()
    11. System.Threading.ExecutionContext.RunInternal()
    12. System.Threading.ExecutionContext.Run()
    13. System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    14. System.Threading.ThreadPoolWorkQueue.Dispatch()

Where should we further search for the cause, the trigger of this recycle?



It turned out to be Kaspersky antivirus. After my intensive research and an email support exchange with them it became clear that the daily early morning file system scan was "touching" the files in the ASP.Net bin directory, in a very vague manner (changing and restoring file dates). See this Kaspersky support post:


They provided a fix for it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.