ASP.NET应用程序适度负载下挂在IIS 7请求暂停。如何调试? [英] ASP.NET application hangs under modest load in IIS 7. Requests timeout. How to debug?

查看:130
本文介绍了ASP.NET应用程序适度负载下挂在IIS 7请求暂停。如何调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个ASP.NET网站上IIS7运行Windows Server 2008上的 - 实际上,我们运行几个相同的服务器相同的code。交通已经越来越大,有时,在较高的交通时间,该网站(实际上是应用程序)会变得反应迟钝 - 或者至少使慢显得反应迟钝。这样做的唯一的事情就是停止/启动W3SVC;回收站点或应用程序不解决它。

We have an ASP.NET site running on IIS7 on Windows Server 2008--actually we run the same code on several identical servers. Traffic has been growing and occasionally, at higher-traffic times, the site (actually the application) will become unresponsive--or at least so slow as to appear unresponsive. The only thing to do is to stop/start W3SVC; recycling the site or application don't fix it.

同样的症状在多台服务器上发生的(偶尔看似随机)。所以它不是一个特定的框。这些服务器有8GB的RAM,并且不要使用超过5GB以上;和CPU使用率平均为40-50%左右,即使在这些高流量倍。因此,这些都是不可能的问题。

The same symptoms happen (occasionally and seemingly randomly) on more than one server. So it is not a particular box. These servers have 8GB of RAM, and don't use more than 5GB; and CPU usage averages around 40-50% even in these high-traffic times. So those aren't likely the issue.

有没有应用程序错误或超时底层(SQL等),并没有被记录在事件日志中。通常情况下,当我们在性能监视器观看ASP.NET,请求大约5-10徘徊执行,并要求各地当前25-40。当这个开始,这些数字都坚定不移地实现无限次爬在每一个要求进行客户端。

There are no application errors or underlying timeouts (SQL, etc.), and nothing is recorded in the Event Log. Normally, when we watch ASP.NET in PerfMon, Requests Executing hovers around 5-10 and Requests Current around 25-40. When this starts, those numbers both steadily climb towards infinity as every request times out for the client.

虽然我很想银弹,我主要是希望有一个更好的方法来调试的事情。有没有更好的性能监视器数字来看看?东西可以被记录?一些尝试或测试?

While I'd love a silver bullet, I'm mainly hoping for a better approach to debugging things. Are there better PerfMon numbers to look at? Something that could be logged? Something to try or test?

预先感谢您的想法,蜂房头脑!

Thanks in advance for your ideas, hive-mind!

推荐答案

苔丝Ferrandez对如何调试这些类型的问题,一个伟大的系列文章/实验室:

Tess Ferrandez has a great series of posts/labs on how to debug these kinds of problems:

<一个href=\"http://blogs.msdn.com/b/tess/archive/2008/02/04/net-debugging-demos-information-and-setup-instructions.aspx\" 。相对=nofollow> NET调试演示 - 信息和设置说明

不幸的是很少单一的银弹解决这类问题。你需要得到工作进程的转储时,它挂起,然后开始戳有关使用的WinDBG和SOS。

Unfortunately there's rarely a single silver bullet solution to these kinds of problems. You need to get a dump of that worker process when it hangs and then start poking about using WinDBG and SOS.

这篇关于ASP.NET应用程序适度负载下挂在IIS 7请求暂停。如何调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆