经典ASP网站偶尔会挂起 [英] Classic ASP site is hanging occasionally

查看:68
本文介绍了经典ASP网站偶尔会挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在IIS 7.5上有一个经典的ASP网站.

We have a classic ASP website on IIS 7.5.

用户随机遇到缓慢的响应.发生这种情况时,用户在几分钟之内无法做任何事情,这非常令人沮丧.

Users are experiencing slow response randomly. When that happens, user cannot do anything for a few minutes which is very frustrating.

例如,我可以打开主页,然后在类别中单击几次,然后网站仅停止响应.

For example, I can open home page, then click few times through categories, and then website simply stops responding.

当站点停止响应时,我没有发现任何规则.有时,它一直都工作正常,有时只是停止.

I didn't notice any rule when site will stop responding. Sometimes, it is working fine all time, sometimes it just stops.

当响应缓慢时,我可以等待几分钟,然后获取页面.我试图停止页面加载并刷新页面,但这没有帮助.发生这种情况时,我无法刷新页面,也无法转到其他页面.网站上的每个页面都没有响应.

When it is responding slowly, I can wait few minutes and then get the page. I tried to stop page load, and refresh the page, but that is not helpful. When this happen, I can't refresh the page, and I can't go to other page. Each page on site is not responding.

但是,如果我打开其他浏览器,可以说我在Chrome浏览器中,然后打开IE,则新浏览器中的网站再次运行很快.

But, if I open other browser, let say I am in Chrome and open IE, site in new browser is fast again.

我唯一的线索是,如果我在客户端删除ASP会话cookie,那么在同一浏览器中页面的加载又很快了.因此,这显然与ASP会话cookie有关.IIS或ASP引擎是否可以出于某种原因阻止ASP会话?

My only clue, if I delete ASP session cookie on client side, then loading of pages is fast again in same browser. So, it is obviously something related to ASP session cookie. Can IIS or ASP engine somehow block ASP session for some reason?

我注意到,如果我快速点击网站,则响应速度慢的可能性更大.看起来在几次快速点击后,服务器可能由于某种原因拒绝了该会话?

I noticed there is more chance for slow response if I click through site fast. It looks like after few fast clicks server maybe refuse that session for some reason?

此外,不确定它是否有用并且与问题有关,我经常看到许多不同的ASP会话cookie.我想在浏览器中每个用户应该只有一个会话cookie,但是我看到几个具有不同值的不同会话cookie.

Also, not sure if it is helpful and related to problem, I often see numerous different ASP session cookies. I suppose it should be only one session cookie per user in browser, but I see several different session cookies with different values.

有人见过类似的东西吗?知道如何解决这些偶尔的缓慢响应吗?

Anyone ever saw something similar? Any idea how to resolve these occasional slow responses?

谢谢!

我发现当响应速度慢时,我什至无法加载空的ASP页面(我用一行代码创建了页面,仅使用Response.Write"working").当然,如果我在其他浏览器中打开该页面,则该页面将立即生效.发生问题时,网站仅在该会话中挂起.如果我在其他浏览器中尝试同一页面或在同一浏览器中清除会话cookie,则页面正在快速加载.

I found when slow response happens, I cannot load even empty ASP page (I created page with one line of code, just with Response.Write "working"). Of course, if I open that page in another browser it works in no time. When problem happens, website is hanging only for that session. If I try same page in other browser or clear session cookie in same browser, page is loading fast.

推荐答案

我想我找到了答案.ASP网站正在使用几个自定义COM组件.

I think I found an answer. The ASP website is using several custom COM components.

其中一些组件正在将日志文件写入光盘.这些日志是.txt文件.

Some of these components are writing log files on disc. These logs are .txt files.

日志文件随时间增长,其中一个超过4GB.不知何故,写入大文件会导致服务器在加载多个页面后响应缓慢.有趣的是,新的浏览器窗口在其他浏览器中挂起时可以快速打开页面.

Log files grow over time, and one was over 4GB. Somehow, writing to big file caused server to respond slowly after loading of several pages. What is interesting, new browser window could open page fast when it is hanging in other browser.

因此,我从ASP代码中删除了写入日志文件的部分,并且网站现在可以正常工作而无需挂起.

So, I removed that part which writes to log files from ASP code, and website is now working without hanging.

谢谢所有!

这篇关于经典ASP网站偶尔会挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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