简体   繁体   English

ASP.NET Core 5,IIS 应用程序池随机崩溃并停止响应

[英]ASP.NET Core 5, IIS Application Pool randomly crashes and stops responce

when my users have more than 20 I give some error at ASP.NET Core 5.0 running on IIS 7.5 on Windows Server 2008 R2.当我的用户超过 20 个时,我在 Windows Server 2008 R2 的 IIS 7.5 上运行的 ASP.NET Core 5.0 出现一些错误。 Since refreshing the app randomly crashes and leaves it with a 503 Service Unavailable response.由于刷新应用程序随机崩溃并留下 503 服务不可用响应。

Example of warning:警告示例:

   dumpproc version 1.249.198.20220919-114646, installer version 1.249.198.20220919-114646

time: 2022-10-05 20:32:40 UTC, processId: 69908, path: C:\Program Files\dotnet\dotnet.exe
Exception 0xc00000fd: A new guard page for the stack cannot be created.

Another example of a warning:另一个警告示例:

dumpproc version 1.249.198.20220919-114646, installer version 1.249.198.20220919-114646

time: 2022-10-05 20:32:40 UTC, processId: 69908, path: C:\Program Files\dotnet\dotnet.exe

Number of threads: 114
ThreadId 0xE628 - Stack: [0xDB36400000 - 0xDB36580000] Total Size: 1536 kB (committed: 1532kB) +++STACK OVERFLOW+++
    [0xDB36400000 - 0xDB36401000]    Size: 0x1000                Type: MEM_PRIVATE         State: MEM_RESERVE         Protect: (0x0)
    [0xDB36401000 - 0xDB36580000]    Size: 0x17F000              Type: MEM_PRIVATE         State: MEM_COMMIT          Protect: PAGE_READWRITE(0x4)

I give a crash/error like this from the debugger.我从调试器中给出了这样的崩溃/错误。

Analysis Summary
 Warning
Description Recommendation
50 client connection(s) in w3wp.exe__mygame.com(domain)(4.0)(pool)__PID__10776__Date__10_06_2022__Time_07_28_18PM__382__Manual Dump.dmp have been executing a request for more than 90 seconds. Please see the Client Connections section of this report for more detailed information about the connection(s).
 Notification
Description Recommendation
One or more of the selected rules were not completed.   See the Analysis Rule Summary for more information.
DebugDiag did not detect LeakTrack.dll loaded in w3wp.exe__mygame.com(domain)(4.0)(pool)__PID__10776__Date__10_06_2022__Time_07_28_18PM__382__Manual Dump.dmp, so no leak analysis was performed on this file.  If you are troubleshooting a memory leak, please ensure LeakTrack.dll is injected into the target process using the DebugDiag tool before or generating new dumps.

For information regarding installation and usage of the IISDiag tool, please see the included help file.    
Analysis results may be incomplete because an error occurred while initializing the CLR diagnostic runtime for w3wp.exe__mygame.com(domain)(4.0)(pool)__PID__10776__Date__10_06_2022__Time_07_28_18PM__382__Manual Dump.dmp.


Dump File:  w3wp.exe__mygame.com(domain)(4.0)(pool)__PID__10776__Date__10_06_2022__Time_07_28_18PM__382__Manual Dump.dmp

Type:  Microsoft.Diagnostics.Runtime.ClrDiagnosticsException

Message:  This runtime is not initialized and contains no data.

Stack Trace:
Microsoft.Diagnostics.Runtime.RuntimeBase..ctor(DataTargetImpl dataTarget, DacLibrary lib)
Microsoft.Diagnostics.Runtime.Desktop.V45Runtime..ctor(DataTargetImpl dt, DacLibrary lib)
Microsoft.Diagnostics.Runtime.DataTargetImpl.CreateRuntime(String dacFilename)
DebugDiag.DotNet.NetDbgObj.CreateRuntime(String symbolPath, DataTarget target, Int32 runtimeIndex, ClrInfo& clrInfo)
DebugDiag.DotNet.NetDbgObj.CreateRuntimeAndGetHeap(String dumpPath, IDbgObj4 legacyDebugger, String symbolPath, Boolean throwOnBitnessMismatch, Boolean loadClrHeap)

HResult: RuntimeUninitialized   This message means that the CLR Runtime is loaded but the ThreadStore or GC Heap information is not initialized.
Analysis Details

and:和:

**MemoryAnalysis**
Report for w3wp.exe__teslagame.ir(domain)(4.0)(pool)__PID__10776__Date__10_06_2022__Time_07_28_18PM__382__Manual Dump.dmp
Type of Analysis Performed  Memory Pressure Analysis
Machine Name    SERVER
Operating System    Windows Server - 17763
Number Of Processors    32
Process ID  10776
Process Image   c:\Windows\System32\inetsrv\w3wp.exe
Command Line    c:\windows\system32\inetsrv\w3wp.exe -ap "teslagame.ir(domain)(4.0)(pool)" -v "v4.0" -l "webengine4.dll" -a \\.\pipe\iisipm600e3b22-7687-4999-be3c-7bb5e8a2a29d -h "C:\inetpub\temp\apppools\teslagame.ir(domain)(4.0)(pool)\teslagame.ir(domain)(4.0)(pool).config" -w "" -m 0 -t 5 -ta 1
System Up-Time  17:59:36
Process Up-Time 17:59:17
Processor Type  X64
Process Bitness 64-Bit
Virtual Memory Analysis
Virtual Memory Summary
Size of largest free VM block     124.3 TBytes
Free memory fragmentation     1.35%
Free Memory   126 TBytes   (98.43% of Total Memory)
Reserved Memory   2 TBytes   (1.57% of Total Memory)
Committed Memory      238.64 MBytes   (0% of Total Memory)
Total Memory      128 TBytes
Largest free block at     0x000001a8`1a690000

I could really use some help trying to find the source of these crashes.我真的需要一些帮助来找出这些崩溃的根源。

Just upgrade your project framework, I had the same problem, and upgrade .net5 to .net6 then all problem sloved:)只需升级您的项目框架,我遇到了同样的问题,并将 .net5 升级到 .net6 然后所有问题都解决了:)

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

相关问题 在一个 IIS 应用程序池中托管两个 asp.net 核心项目 - Hosting two asp.net core projects in one IIS application pool ASP.NET Core和EF应用程序在初始化数据库上下文时停止 - ASP.NET Core and EF application stops at initialising Database context Asp.net 核心应用程序随机路由停止工作,直到我回收应用程序池 - Asp.net core app random route stops working until i recycle app pool ASP.Net Core:IIS Active Directory身份验证-不使用池标识 - ASP.Net Core: IIS Active Directory Authentication - Not using Pool Identity 在 ASP.Net Core 集成测试中模拟 IIS App Pool Identity - Simulating IIS App Pool Identity in ASP.Net Core Integration Test ASP.NET .NET 4.5 应用程序在 IIS 中定期崩溃,我无法找出原因 - ASP.NET .NET 4.5 Application crashes in IIS periodically and I can't figure out the cause 使用 Windows10 的 IIS 上的 ASP.NET Core 应用程序不断崩溃 - Constant crashes of ASP.NET Core app on IIS with Windows10 使用应用程序池标识在IIS上的ASP.NET中查询Win32_Printer时,权限被拒绝 - Permission denied while querying Win32_Printer in ASP.NET on IIS using Application Pool Identity Asp.Net Core 应用程序在 IIS Express 中运行,但不在 IIS 应用程序部署中运行 - Asp.Net Core application runs in IIS Express but not in IIS App Deployment Asp.net随机停止服从表单身份验证白名单 - Asp.net randomly stops obeying forms authentication whitelist
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM