脚本超时,错误ASP 0113 ??? [英] Script timed out, error ASP 0113???

查看:278
本文介绍了脚本超时,错误ASP 0113 ???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有时会在等待

mazes.com约60秒后收到此错误。 (但是当页面工作时,它通常加载不到12

秒)。

I sometimes get this error after about 60 seconds of "waiting for
mazes.com" (but when the page works, it usually loads in less than 12
seconds).

Active Server Pages错误''ASP 0113''脚本超时
/asp-maze/amazingtest.asp
超出了脚本执行的最长时间。您可以通过为属性Server.ScriptTimeout指定新值或通过更改IIS管理工具中的值来更改此限制。
Active Server Pages error ''ASP 0113''
Script timed out
/asp-maze/amazingtest.asp
The maximum amount of time for a script to execute was exceeded. You can
change this limit by specifying a new value for the property Server.ScriptTimeout
or by changing the value in the IIS administration tools.




但如果我点击刷新,我通常会得到页面。


有一个非常遥远的机会,可能有一个循环导致这个

问题,但是我不这么认为。我已经将定时器检查添加到可能导致问题的循环

,并且已经添加了其他转义方法,以便我认为已经导致问题的其他地方。


我的问题:


1)系统可以设置为告诉程序执行的是哪一行

什么时候超时? (这肯定有助于弄清楚是否存在导致偶尔出现问题的特殊地方)。我必须告诉我的主持人如何做到这一点,所以如果可以,请具体说明。


2)这可能是由于很多人同时在

访问ASP页面?他将如何增加允许同时加载页面的用户数量?


3)他将使用哪些步骤来减少此参数的时间,或者

我应该减少它。 60秒似乎非常长,但我确实有

另一页我


John



but if I click refresh, I usually get the page.

There is a very remote chance that there might be a loop causing this
problem, but I don''t think so. I''ve added timer-checks to the loops
that might cause a problem, and have added other escape methods to
other places that I think have caused the problem.

My questions:

1) Can the system be set to tell what line of the program was executing
when it timed out? (This would certainly help figure out if there''s a
particular place that is causing an occasional problem). I''d have to
tell my hosting person how to do it, so be specific if you can.

2) Could this be caused by too many people accessing ASP pages at the
same time? How would he increase the number of users allowed to be
loading pages simultaneously?

3) What steps would he use to reduce the time for this parameter, or
should I reduce it. 60 seconds seems awfully long, but I do have
another page that I

John

推荐答案

www.MessageMazes.com 写道:
在等待mazes.com约60秒后,我有时会收到此错误。 (但是当页面工作时,它通常在不到12秒的时间内加载。)
I sometimes get this error after about 60 seconds of "waiting for
mazes.com" (but when the page works, it usually loads in less than 12
seconds).
Active Server Pages错误''ASP 0113''
脚本超时
/asp-maze/amazingtest.asp
超出了脚本执行的最长时间。您可以通过为属性
Server.ScriptTimeout指定新值或通过更改IIS管理工具中的值来更改此限制。
但如果我点击刷新,我通常会得到页面。

有一个非常遥远的机会,可能有一个循环导致这个
问题,但我不这么认为。我已经将定时器检查添加到了可能导致问题的循环中,并且已经添加了其他转义方法到我认为导致问题的其他地方。

我的问题:

1)系统可以设置为在超时时告诉程序执行的是什么行?
Active Server Pages error ''ASP 0113''
Script timed out
/asp-maze/amazingtest.asp
The maximum amount of time for a script to execute was exceeded. You
can
change this limit by specifying a new value for the property
Server.ScriptTimeout or by changing the value in the IIS
administration tools.
but if I click refresh, I usually get the page.

There is a very remote chance that there might be a loop causing this
problem, but I don''t think so. I''ve added timer-checks to the loops
that might cause a problem, and have added other escape methods to
other places that I think have caused the problem.

My questions:

1) Can the system be set to tell what line of the program was
executing when it timed out?




不是我所知道的。您将需要在

应用程序中添加一些日志记录功能,以便您可以看到发生了什么。
2)这可能是由于太多人访问ASP页面而造成的。
同时?他将如何增加允许同时加载页面的用户数量?


也许。在该循环中发生了什么?

3)他将使用哪些步骤来减少此参数的时间,或者


您可以通过添加自己来完成a

Server.ScriptTimeout = 120


命令在您的页面中。不是我建议这样做...

我应该减少它。 60秒似乎非常长,但我确实有另一页我



Not that I know of. You will need to add some logging functionality to your
application so you can see what was happening.
2) Could this be caused by too many people accessing ASP pages at the
same time? How would he increase the number of users allowed to be
loading pages simultaneously?
Maybe. What is occurring in that loop?

3) What steps would he use to reduce the time for this parameter, or
You can do it yourself by adding a
Server.ScriptTimeout = 120

command in your page. Not that I recommend doing this ...
should I reduce it. 60 seconds seems awfully long, but I do have
another page that I




约翰?约翰??你还好吗? OMIGOD,约翰'被外星人杀了!! ;-)


Bob Barrows

-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。我的From

标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。



John? John?? Are you ok? OMIGOD, JOHN''S BEEN KIDNAPPED BY ALIENS!! ;-)

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.


Bob Barrows [MVP]写道:
Bob Barrows [MVP] wrote:
我应该减少它吗? 60秒似乎非常长,但我确实有另一页我
should I reduce it. 60 seconds seems awfully long, but I do have
another page that I



约翰?约翰??你还好吗? OMIGOD,约翰'被外星人杀了!! ; - )



John? John?? Are you ok? OMIGOD, JOHN''S BEEN KIDNAPPED BY ALIENS!! ;-)




哦等等。误报。他打了另一个超时,对吗?

-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。我的From

标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。



Oh wait. False alarm. He hit another timeout, right?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.


伙计,你见过约翰吗?它至少是61秒。

我开始担心了。我失踪了,他的猫在风 -

暴风雨中消失了。 -_wierd_- no?

让我们看看错误0113是什么...


脚本在

终止。当脚本的处理时间超过为ScriptTimeout属性指定的最大值

时,会生成错误。


注意:超时值的增加会对服务器性能产生负面影响

。您应该在默认超时设置中设计运行

的脚本。例如,脚本超时值增加

可以保持IIS线程占用,并且
减少服务器可以服务的用户数。


您是否尝试过加载页面,然后不等待它回来,而是在您回来后约5秒钟击中F5

制作第一个请求?第二个请求是否更快回来了?


它不一定是循环...它可能是一个'不是<的查询br />
因为一个坏的或不存在的索引而回来或者可能

有人选择不在表格上创建主键

该数据?


是否有任何条件陈述可能会阻止

另一种资源?或某些投射不正确或

在比较时为空?

D?


Bob Barrows [MVP]写道:
Dude, have you seen john? It''s been like atleast 61 seconds.
I''m beginning to get worried. My cats disappeared in a wind-
storm at the same time he disappeared. -_wierd_- no?
Lets see what an error 0113 is...

maximum amount of time that a script can run before it is
terminated. The error is generated when the processing time
of the script exceeds the maximum value that has been
designated for the ScriptTimeout property.

NOTE: An increase in timeout value can have a negative effect
on server performance. You should design scripts that run
within the default timeout settings. For example, an increase
in script timeout value can keep IIS threads occupied and
reduce the number of users that the server can serve.

Have you tried loading the page, and then not waiting for it
to come back, but rather, hitting F5 about 5 seconds after you
make the first request? Does the second request come back any
faster?

It does not have to be loops... it could be a query that''s not
coming back because of a bad or non-existant index or possibly
someone has chosen not to create primary keys on the tables for
that data?

Are there any conditional statements that might block against
another resource? or something that''s not casting properly or
is null at the time of comparison?
D?

Bob Barrows [MVP] wrote:
Bob Barrows [MVP]写道:
Bob Barrows [MVP] wrote:
我应该减少它。 60秒似乎非常长,但我确实有另一页我
should I reduce it. 60 seconds seems awfully long, but I do have
another page that I



约翰?约翰??你还好吗? OMIGOD,约翰'被外星人杀了!! ; - )



John? John?? Are you ok? OMIGOD, JOHN''S BEEN KIDNAPPED BY ALIENS!! ;-)



哦等等。误报。他又打了一次超时,对吗?


Oh wait. False alarm. He hit another timeout, right?



这篇关于脚本超时,错误ASP 0113 ???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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