简体   繁体   English

IIS挂网站

[英]IIS hanging website

I have an ASP.NET website that gets into a hanging state randomly.我有一个 ASP.NET 网站,它随机进入挂起状态。 Sometimes it will return non-.net files like css/js.有时它会返回非 .net 文件,如 css/js。 Other times it wont response to any request.其他时候它不会响应任何请求。 When it is in the state, it is gone and can only be recovered with an IISRESET.当它处于该状态时,它就消失了,只能通过 IISRESET 恢复。 Odd thing is when I perform the IISRESET, it fails.奇怪的是,当我执行 IISRESET 时,它失败了。 I always have to run it a 2nd time to get the site to recycle.我总是必须第二次运行它才能让网站回收利用。

I have IIS tracing turned on with a time limit of 10 seconds.我打开了 IIS 跟踪,时间限制为 10 秒。 But this only creates logs when the site is running normal and a request takes longer than 10 seconds.但这只会在站点运行正常且请求时间超过 10 秒时创建日志。 But when it is in this hung state, no trace request logs are recorded at all.但是当它处于这种挂起状态时,根本不会记录任何跟踪请求日志。

I have used process monitor looking for access denied file request.我使用进程监视器寻找访问被拒绝的文件请求。 But there are none and that makes sense.但没有,这是有道理的。 File access errors are usually not random.文件访问错误通常不是随机的。

I am at a loss on how to diagnose this issue.我不知道如何诊断这个问题。 I am going to take a mem dumb of the w3wp and analyze it with WinDebug, but I am not sure if that will give me any good intel on the culprit.我将使用 w3wp 的 mem 傻瓜并使用 WinDebug 对其进行分析,但我不确定这是否会给我任何关于罪魁祸首的好情报。

Any thoughts on how to proceed?关于如何进行的任何想法? Below is the list of requests.以下是请求列表。 You can see the length of time and how that are in stage:BeginRequest, module:IIS Web Core .您可以看到时间长度以及它在stage:BeginRequest, module:IIS Web Core

C:\\Windows\\system32>%windir%\\system32\\inetsrv\\appcmd list requests /elapsed:30000 C:\\Windows\\system32>%windir%\\system32\\inetsrv\\appcmd 列表请求 /elapsed:30000

REQUEST "fe00000280000147" (url:GET /, time:548687 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core) REQUEST "fe00000280000147" (url:GET /, time:548687 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core)

REQUEST "d5000002800007da" (url:GET /_DEV/TdsService.asmx, time:496609 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core) REQUEST "d5000002800007da" (url:GET /_DEV/TdsService.asmx, time:496609 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core)

REQUEST "c4000000800001c9" (url:GET /, time:471609 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core) REQUEST "c4000000800001c9" (url:GET /, time:471609 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core)

REQUEST "df00000180000012" (url:GET /, time:431281 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core) REQUEST "df00000180000012" (url:GET /, time:431281 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core)

REQUEST "ff00000180000252" (url:GET /sitecore/service/keepalive.aspx?ts=3200641, time:385422 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core) REQUEST "ff00000180000252" (url:GET /sitecore/service/keepalive.aspx?ts=3200641, time:385422 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core)

REQUEST "e500000180000060" (url:GET /default.css, time:289406 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core) REQUEST "e500000180000060" (url:GET /default.css, time:289406 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core)

REQUEST "c10000008000029c" (url:GET /sitecore/service/keepalive.aspx?ts=8571320, time:196281 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core) REQUEST "c10000008000029c" (url:GET /sitecore/service/keepalive.aspx?ts=8571320, time:196281 msec, client:127.0.0.1, stage:BeginRequest, module:IIS Web Core)

Debug diag is your friend here.Launch a debug diag when the hang happens and capture trace or you can set debug diag to capture trace automatically调试诊断是您的朋友。当挂起时启动调试诊断并捕获跟踪,或者您可以将调试诊断设置为自动捕获跟踪

Tess Fernandez has labs here to help here : https://blogs.msdn.microsoft.com/tess/2008/02/04/net-debugging-demos-lab-1-hang/ Tess Fernandez 有实验室可以在这里提供帮助: https : //blogs.msdn.microsoft.com/tess/2008/02/04/net-debugging-demos-lab-1-hang/

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

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