简体   繁体   English

asp.net mvc应用程序无故每秒重新启动

[英]asp.net mvc application restarting every second without reason

I have an issue with an asp.net mvc 4 web application that when it comes under load, it starts restarting every second. 我遇到了一个asp.net mvc 4 Web应用程序的问题,当它受到负载时,它开始每秒重新启动。 It is running on Windows Server 2012 and IIS 7.5. 它在Windows Server 2012和IIS 7.5上运行。 This also results in the CPU hitting 100% until its app pool gets recycled. 这还会导致CPU达到100%,直到其应用程序池被回收为止。 I found that the app was getting recycled by adding logging to the Application_End method in global.asax with logging the HostingEnvironment.ShutdownReason to a text file. 通过将HostingEnvironment.ShutdownReason记录到文本文件中,将日志记录添加到global.asax中的Application_End方法中,我发现该应用程序正在回收。 This tells me that the application is being restarted with the following details: Reason: ConfigurationChange 这说明我正在使用以下详细信息重新启动应用程序:原因:ConfigurationChange

However I am not aware of what configuration change is occuring or what is causing such. 但是,我不知道正在发生什么配置更改或引起此更改的原因。 Researching on the internal is not helping and need to get insight in to such. 对内部进行研究无济于事,并且需要对此有所了解。 I noticed though the Process ID is not changing. 我注意到,虽然进程ID并未更改。

As an aside, I noticed in the event viewer critical errors being logged at the same time under Microsoft > Windows > Application Server-Applications > Operational. 顺便说一句,我注意到在事件查看器中同时在Microsoft> Windows> Application Server-Applications> Operational下记录了严重错误。 Exceptions being 例外

    Unhandled exception.  Exception details: System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Threading.WaitHandle.WaitMultiple(WaitHandle[] waitHandles, Int32 millisecondsTimeout, Boolean exitContext, Boolean WaitAll)
   at System.Threading.WaitHandle.WaitAny(WaitHandle[] waitHandles, Int32 millisecondsTimeout, Boolean exitContext)
   at System.Runtime.IOThreadTimer.TimerManager.OnWaitCallback(Object state)
   at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)

Any tips or information as to where the issue here is, what is causing the restarts? 关于这里问题所在的任何提示或信息,是什么原因导致重新启动? Any tools or tips to assist? 有什么工具或提示可以帮助您吗?

Any feedback would be great. 任何反馈将是巨大的。

Check your application app pool recycle configuration. 检查您的应用程序应用程序池回收配置。 There is a virtual memory threshold that can causes the app pool to be recycled. 虚拟内存阈值可能导致应用程序池被回收。

Any exception thrown out of process will restart the application pool. 抛出异常的任何异常都会重新启动应用程序池。 Any asynchronous tasks are considered out of process so that's why it's restarting your app pool. 任何异步任务都被视为进程外,因此这就是重新启动应用程序池的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ASP.NET MVC - 具有相同 model 的多个表(实体),无需每次都重新启动 - ASP.NET MVC - Multiple tables (entities) with the same model without restarting every time 在不重新启动应用程序的情况下向asp.net mvc应用程序添加dll引用 - Adding dll reference to asp.net mvc application without restarting application ASP.NET本地化:在不重启应用程序的情况下更改资源? - ASP.NET localization: Changing resources without restarting the application? 是否有理由*不是*在每个应用程序中实现异步ASP.NET网页? - Is there any reason *not* to implement asynchronous ASP.NET web pages in every application? ASP.NET MVC为什么我的应用程序会继续重启? - ASP.NET MVC why does my app keep restarting? 在没有实体框架和迁移的ASP.NET Core MVC应用程序中使用ASP.NET标识 - Using ASP.NET Identity in an ASP.NET Core MVC application without Entity Framework and Migrations Asp.Net应用程序不断重启,因此缓存很大 - Asp.Net Application keeps on restarting so the cache is big ASP.NET FormsAuthentication:重新启动应用程序时必须重新登录 - ASP.NET FormsAuthentication: have to log in again when restarting application 无需重启即可清除 ASP.NET 临时组件 IIS - Clear ASP.NET Temporary Assemblies Without Restarting IIS ASP.NET MVC - 有什么理由使用 App_Themes? - ASP.NET MVC - Any reason to use App_Themes?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM