zoukankan      html  css  js  c++  java
  • windows Server 2008 IIS7 503错误解决方案

    windows 2008 R2
    在访问的时候经常会出现503错误,于之前使用的是默认配置,服务器最多只能处理5000个同时请求,今天下午由于某种情况造成同时请求超过5000,下面是具体的解决方案:

    windows 2008 R2 在访问的时候经常会出理 503错的解决方案

      Error Summary:

      HTTP
    Error 503.2 - Service Unavailable

      The
    serverRuntime@appConcurrentRequestLimit setting is being exceeded.


      Detailed Error Information:

      Module IIS Web Core


      Notification BeginRequest

      Handler StaticFile

      Error
    Code 0x00000000


      由于之前使用的是默认配置,服务器最多只能处理5000个同时请求,今天下午由于某种情况造成同时请求超过5000,从而出现了上面的错误。


      为了避免这样的错误,我们根据相关文档调整了设置,让服务器从设置上支持10万个同时请求。

      具体设置如下:


      1. 调整IIS 7应用程序池队列长度

      由原来的默认1000改为65535。

      IIS Manager
    > ApplicationPools > Advanced Settings

      Queue Length : 65535


      2. 调整IIS 7的appConcurrentRequestLimit设置

      由原来的默认5000改为100000。


      c:windowssystem32inetsrvappcmd.exe set config
    /section:serverRuntime /appConcurrentRequestLimit:100000


      在%systemroot%System32inetsrvconfigapplicationHost.config中可以查看到该设置:


      3. 调整machine.config中的processModel>requestQueueLimit的设置


      由原来的默认5000改为100000。

      修改方法:

      Click Start and then click Run.

      1.In the Run dialog box, type notepad %systemroot%Microsoft.NetFramework64v2.0.50727CONFIGmachine.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 2008, in the Run dialog box, type appcmd.exe set config /section:serverRuntime /appConcurrentRequestLimit:<#of users * 1.5>.




      参考文章:http://technet.microsoft.com/en-us/library/dd425294(office.13).aspx


      4. 修改注册表,调整IIS 7支持的同时TCPIP连接数

      由原来的默认5000改为100000。


      reg add HKLMSystemCurrentControlSetServicesHTTPParameters /v
    MaxConnections /t REG_DWORD /d 100000


      完成上述4个设置,就可以支持10万个同时请求,西西软件服务器已经启用上述设置。

    转自http://www.jb51.net/os/windows/win2008/80751.html

  • 相关阅读:
    如何使用vs2008单元测试416a3648
    限制TextBox的长度
    DataGrid双击事件
    结构与类
    DataGrid删除对话框 & 限制编辑模试TextBox长度
    安逸...
    新来的,请多关照~!
    asp.net中使用JMail发邮件
    silverlight3datagrid中的数据导出到excel
    sl3中的DataGrid中的数据导出到Excel中 使用csv格式 解决中文是乱码的问题
  • 原文地址:https://www.cnblogs.com/iwin9999/p/3820645.html
Copyright © 2011-2022 走看看