IIS应用程序崩溃转储文件帮助

时间:2014-10-27 15:00:11

标签: c# asp.net .net crash iis-7.5

我正在寻找一些帮助,了解我的一些w3p故障转储文件。

背景信息:我有一个IIS 7.5 .net 4.5应用程序(WebApiApplication),它被设置为后台服务应用程序。应用程序设置为始终打开。应用程序在间歇性位置崩溃/卸载,我正在使用转储文件对崩溃进行故障排除。当应用程序崩溃时,将触发Application_End()事件,但是我附加到AppDomain.CurrentDomain.UnhandledException的事件处理程序不会触发。这让我相信我有某种内存泄漏或进程死锁问题。我已经用内存转储和蚂蚁配置文件描述了我的应用程序,并没有出现显示内存泄漏的实际问题。

我使用调试诊断工具调试了我的w3p进程。以下是一些相关领域:

此日志事件每隔几秒显示一次是没有意义的。这是在应用程序上没有IIS日志活动的期间,因此应用程序在没有外部请求的情况下执行此操作。这种情况在崩溃前的几个小时内每隔几秒到几秒发生一次。这对我来说很奇怪,因为这是一个c#应用程序,并且没有任何VB代码。我记录了我启动和关闭新任务和线程的所有代码事件,这些事件与我的任何代码都没有关联,它看起来像托管代码问题?

[10/26/2014 8:52:36 PM] First chance exception - 0XE0434352 caused by thread with Script Error
Error Code - 0x800A0005
Error Source [Microsoft VBScript runtime error]
Error Description [Invalid procedure call or argument]
Line 458, Column 10

[10/26/2014 8:52:37 PM] Thread exited. Exiting thread system id - System ID: 4912. Exit code -     0x00000000
[10/26/2014 8:52:41 PM] Thread created. New thread system id - System ID: 5696
[10/26/2014 8:52:43 PM] Thread exited. Exiting thread system id - System ID: 5696. Exit code -     0x00000000
[10/26/2014 8:52:44 PM] Thread created. New thread system id - System ID: 7640
[10/26/2014 8:52:47 PM] Thread exited. Exiting thread system id - System ID: 7640. Exit code - 0x00000000
[10/26/2014 8:52:48 PM] Thread created. New thread system id - System ID: 7584
[10/26/2014 8:52:50 PM] Thread exited. Exiting thread system id - System ID: 7584. Exit code - 0x00000000
[10/26/2014 8:52:50 PM] Thread created. New thread system id - System ID: 5760
[10/26/2014 8:52:53 PM] Thread exited. Exiting thread system id - System ID: 5760. Exit code - 0x00000000
[10/26/2014 8:52:55 PM] Thread created. New thread system id - System ID: 7056
[10/26/2014 8:52:57 PM] Thread exited. Exiting thread system id - System ID: 7056. Exit code - 0x00000000
[10/26/2014 8:52:58 PM] Thread created. New thread system id - System ID: 6324
[10/26/2014 8:53:00 PM] Thread exited. Exiting thread system id - System ID: 6324. Exit code - 0x00000000
[10/26/2014 8:53:01 PM] Thread created. New thread system id - System ID: 3080
[10/26/2014 8:53:03 PM] Thread exited. Exiting thread system id - System ID: 3080. Exit code - 0x00000000
[10/26/2014 8:53:03 PM] Thread created. New thread system id - System ID: 7052
[10/26/2014 8:53:04 PM] Thread exited. Exiting thread system id - System ID: 7052. Exit code - 0x00000000
[10/26/2014 8:53:05 PM] Thread created. New thread system id - System ID: 4796
[10/26/2014 8:53:07 PM] Thread exited. Exiting thread system id - System ID: 4796. Exit code - 0x00000000
[10/26/2014 8:53:08 PM] Thread created. New thread system id - System ID: 1548
[10/26/2014 8:53:10 PM] Thread exited. Exiting thread system id - System ID: 1548. Exit code - 0x00000000
[10/26/2014 8:53:11 PM] Thread created. New thread system id - System ID: 6492
[10/26/2014 8:53:12 PM] Thread exited. Exiting thread system id - System ID: 6492. Exit code - 0x00000000
[10/26/2014 8:53:13 PM] Thread created. New thread system id - System ID: 4484
[10/26/2014 8:53:14 PM] Thread exited. Exiting thread system id - System ID: 7520. Exit code - 0x00000000
[10/26/2014 8:53:14 PM] Thread created. New thread system id - System ID: 2196
[10/26/2014 8:53:15 PM] Thread exited. Exiting thread system id - System ID: 4484. Exit code - 0x00000000
[10/26/2014 8:53:16 PM] Thread created. New thread system id - System ID: 6452
[10/26/2014 8:53:17 PM] Thread exited. Exiting thread system id - System ID: 6452. Exit code - 0x00000000
[10/26/2014 8:53:20 PM] Thread created. New thread system id - System ID: 4312
[10/26/2014 8:53:22 PM] Thread exited. Exiting thread system id - System ID: 4312. Exit code - 0x00000000
[10/26/2014 8:53:22 PM] Thread created. New thread system id - System ID: 5740
[10/26/2014 8:53:23 PM] Thread exited. Exiting thread system id - System ID: 5740. Exit code - 0x00000000
[10/26/2014 8:53:25 PM] Thread created. New thread system id - System ID: 7908
[10/26/2014 8:53:27 PM] Thread exited. Exiting thread system id - System ID: 7908. Exit code -     0x00000000
[10/26/2014 8:53:28 PM] Thread created. New thread system id - System ID: 5996
[10/26/2014 8:53:30 PM] Thread exited. Exiting thread system id - System ID: 5996. Exit code - 0x00000000
[10/26/2014 8:53:31 PM] Thread created. New thread system id - System ID: 4400
[10/26/2014 8:53:33 PM] Thread exited. Exiting thread system id - System ID: 4400. Exit code - 0x00000000
[10/26/2014 8:53:33 PM] Thread created. New thread system id - System ID: 5168
[10/26/2014 8:53:34 PM] Thread exited. Exiting thread system id - System ID: 5168. Exit code - 0x00000000
[10/26/2014 8:53:35 PM] Thread created. New thread system id - System ID: 7620
[10/26/2014 8:53:35 PM] First chance exception - 0XE0434352 caused by thread with System ID: 5324Script Error

另一个值得关注的领域是我的bin目录中的所有dll都加载如下:

[10/26/2014 6:11:20 PM] My.dll loaded at 0x52530000
[10/26/2014 6:11:20 PM] My.dll loaded at 0x05280000
[10/26/2014 6:11:20 PM] My.dll Unloaded from 0x52530000

这是一个问题,看到加载了两次dll,然后从内存寄存器中卸载,或者这是预期的吗?

我的应用程序中的所有内容都是从星期日开始的六种方式记录下来的,我只是无法弄清楚这种间歇性的应用程序崩溃问题,有什么线索吗?

0 个答案:

没有答案