Windows Server IIS7 503 Error Resolution

Source: Internet
Author: User

Windows R2
There are often 503 errors in the access, before the default configuration, the server can handle up to 5,000 simultaneous requests, this afternoon due to a situation caused by the simultaneous request more than 5000, the following is the specific solution:

Windows R2 often comes up with 503 wrong solutions when visiting.

Error Summary:

HTTP
Error 503.2-service Unavailable

The
[Email protected] setting is being exceeded.


Detailed Error information:

Module IIS Web Core


Notification beginrequest

Handler Staticfile

Error
Code 0x00000000


Because the default configuration was used before, the server can handle up to 5,000 simultaneous requests, and this afternoon, because of a situation that caused simultaneous requests exceeding 5000, the above error occurred.


To avoid such errors, we adjusted the settings according to the relevant documentation, allowing the server to support 100,000 simultaneous requests from the settings.

The settings are as follows:


1. Adjusting the IIS 7 application pool queue Length

Changed from the original default of 1000 to 65535.

IIS Manager
> ApplicationPools > Advanced Settings

Queue length:65535


2. Adjust the Appconcurrentrequestlimit settings for IIS 7

Changed from the original default of 5000 to 100000.


C:\windows\system32\inetsrv\appcmd.exe set config
/section:serverruntime/appconcurrentrequestlimit:100000


You can view this setting in%systemroot%\system32\inetsrv\config\applicationhost.config:


3. Adjust the settings of the Processmodel>requestqueuelimit in Machine.config


Changed from the original default of 5000 to 100000.

Modification Method:

Click Start and then click Run.

1.In the Run dialog box, type notepad%systemroot%\microsoft.net\framework64\v2.0.50727\config\ Machine.config, and then click OK.

2.Locate the ProcessModel element that looks like this:<processModel autoConfig="true" />

3.Replace the ProcessModel element with the following value:<processModel enable="true" requestQueueLimit="15000" />

4.Save and close the Machine.config file.

5.For Windows Server, in the Run dialog box, type appcmd.exe set Config/section:serverruntime/appconcu rrentrequestlimit:< #of Users * 1.5>.




Reference article: http://technet.microsoft.com/en-us/library/dd425294 (office.13). aspx


4. Modify the registry to adjust the number of simultaneous TCPIP connections supported by IIS 7

Changed from the original default of 5000 to 100000.


REG ADD hklm\system\currentcontrolset\services\http\parameters/v
maxconnections/t reg_dword/d 100000


Complete the above 4 settings, you can support 100,000 simultaneous requests, the CC software server has enabled the above settings.

Go from http://www.jb51.net/os/windows/win2008/80751.html

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.