Use server.scripttimeout to reduce ASP unexpected errors and server paralysis

Source: Internet
Author: User
server| Error | server


When we execute some programs, such as the recursion of the Forum, the ASP program often executes errors outside of the accident. This type of accidental occurrence is rare, but once it occurs, it causes the ASP code to produce countless HTML or consume a large amount of server resources, causing the server to be less efficient or even paralyzed. This type of error is generally a dead loop until the script finishes execution to end this nightmare error.

Solutions to such problems include:
-Don't use unstable code, but it's hard to determine how much code is stable. For example, my forum system, where the recursion seems to be a bit of a mistake, is making mistakes sometimes.
-If you do not use the above method to confirm the security and stability of the code, you can only shorten the script time of the site, such as Server.ScriptTimeout set to 1, that is, the execution time is only 1 seconds. This will minimize the error duration of the code. Do not think that timeout can only be more than 20, in fact set to 20 or the following:




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.