Response Buffer limit exceeded

Source: Internet
Author: User
Tags server memory metabase
Response object error 'asp 0251: 66661'

Response Buffer limit exceeded

/His/zygl/jzgl_left.asp, row 0

The execution of this ASP page causes the Response Buffer to exceed its configuration limit.

So I searched for the answer on the internet, obtained the following results, and solved the problem smoothly:

Due to the large amount of data on the page and thousands of records, the Response Buffer limit is exceeded. The operation of this ASP page causes the Response Buffer to exceed its configuration limit ". Hypothesis
If response. Buffer = false is set like this, it can be found, but it is very slow. How can this problem be solved?

We can increase the buffer of the buffer:

Disable the iisadminservice service in the service first.

Find metabase. xml under windows \ system32 \ inesrv \, open it, and find
Aspbufferinglimit to change him to the required value, Mo think 4194304, that is, 4096kb, 4 m.

We recommend that you change it to 41943040 (40 m) or a suitable value, depending on whether the server memory is large enough.

Then restart the iisadminservice service.

Note:

1. Check whether the server memory volume is sufficient.
2. Because the data volume is larger than the volume, the corresponding ASP processing time must be changed, that is:
Modify "aspscripttimeout". The default value is 90 (seconds)
Modify "aspsessiontimeout". The default value is 20 (minutes ).

 

 

When you use the response. binarywrite method, an error message "HTTP 500" or "exceeds the Response Buffer limit" appears in IIS 6 and IIS 7"

Http://support.microsoft.com/kb/944886/zh-cn

 

When you send files to the client computer, which Internet Information Services (IIS) 7 or IIS 6 are installed on the Web server, you may receive an error message similar to the following on the client computer:

Error Message 1 HTTP 500-internal server error message 2 response object error ASP 0251: 80004005
Response Buffer limit exceeded
The Response Buffer caused by ASP page running exceeds the configured limit. Error Message 1

In addition, you may receive a message similar to the following content in the IIS log file:

Asp_01__: _ 80004005 | response_buffer_limit_exceeded

To send a file to the clientResponse. binarywriteMethod andAspbufferingonThis problem occurs when the attribute is set to false.

 

The solution to this problem is that when ASP Response Buffer is disabled, IIS will force the default Active Server Page (ASP) Response Buffer value to 4 MB.

 

In most scenarios, the 4 MB buffer limit is sufficient for sending ASP responses to web clients. If this limit is insufficient, use one of the following methods.

 

Method 1: Reduce the response size

To solve this problem, useResponse. binarywriteMethod and ASP Buffer are in disabled state, verify that the data returned to the client is not greater than 4 MB.

If the response is returned, the default value larger than 4 MB may lead to poor user experience. Web browsers must receive large responses over the network. Then, the Web browser must analyze and display a large HTML response.

 

Method 2: Enable ASP response buffering and add buffer restrictions

In IIS 6, you can enable or disable caching at the application level.AspbufferingonAttributes of the IIS metadatabase. RelatedAspbufferingonFor details about the attributes of the IIS metabase, refer to the following Microsoft Site:

Http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/fbe1bd5f-52d4-4a26-8ab1-7bb897bb3d53.mspx (http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/fbe1bd5f-52d4-4a26-8ab1-7bb897bb3d53.mspx)

Note:In IIS 7, you can enable or disable ASP response buffering at the application level.<System. webserver> used in ASPBufferingonValueApplicationhost. config file or in the web. config file.

To enable or disable the buffer page level, you can useResponse. BufferAttribute. RelatedResponse. BufferFor details about attributes, refer to the following msdn site:

Http://windowssdk.msdn.microsoft.com/en-us/library/ms526001.aspx (http://windowssdk.msdn.microsoft.com/en-us/library/ms526001.aspx)

Assume that you must add a buffer limit and select the maximum size of the buffer with known response allowed. If you do not know the maximum response size in advance, you can add the buffer limit to a large value during the Retry. After the trial is completed, the maximum value displayed isSC bytesUse the IIS log file in the field to generate a response for the page.

To add a buffer limit to IIS 6, follow these steps:

  1. ClickStart, ClickRun, Type cmd, and then clickOK.
  2. Type the following command and press Enter: CD/d % systemdrive % \ Inetpub \ adminscripts
  3. Type the following command and press Enter: cscript.exe adsutil. vbs set w3svc/aspbufferinglimitLimitsizeNote:LimitsizeThe buffer size is limited in bytes ). For example, for hundreds of thousands, set the buffer size limit to 64 MB.

To confirm that the buffer limit has been correctly set, follow these steps:

  1. ClickStart, ClickRun, Type cmd, and then clickOK.
  2. Type the following command and press Enter: CD/d % systemdrive % \ Inetpub \ adminscripts
  3. Type the following command and press Enter: cscript.exe adsutil. vbs get w3svc/aspbufferinglimit

 

 

 

Response Buffer limit exceeded

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.