简体   繁体   English

IIS7 C# ASP.NET web 应用程序中某处的堆栈溢出

[英]Stack overflow somewhere in an IIS7 C# ASP.NET web application

My website's IIS7 worker process (w3wp.exe) is being restarted every couple of minutes due to a stack overflow exception which is happening somewhere in a medium-large application.我的网站的 IIS7 工作进程 (w3wp.exe) 每隔几分钟就会重新启动一次,因为堆栈溢出异常发生在中型应用程序的某处。

Event viewer doesn't provide any details as to where the error occurs in the code.事件查看器不提供有关代码中错误发生位置的任何详细信息。

Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to stack overflow.

There's no stack trace in the event viewer from which to find the where the error is.事件查看器中没有堆栈跟踪可以从中找到错误所在。 There are no specific recursive functions in the code (afaik), there probably are indirect recursions, eg A calling B calling C calling A.代码中没有特定的递归函数(afaik),可能存在间接递归,例如 A 调用 B 调用 C 调用 A。

How do I go on about finding where the faulty code is?我如何找到错误代码的位置? I can't debug with Visual Studio because it only happens on the production server with hundreds of users accessing the website.我无法使用 Visual Studio 进行调试,因为它只发生在有数百名用户访问该网站的生产服务器上。

Visual studio debugger will catch it. Visual Studio 调试器会捕捉到它。

Sounds like a job for windbg .听起来像是windbg的工作。 Use adplus to get a crash dump:使用adplus获取故障转储:

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM