IIS伺服器錯誤日誌Timer_ConnectionIdle導致伺服器無法訪問,

來源:互聯網
上載者:User

IIS伺服器錯誤日誌Timer_ConnectionIdle導致伺服器無法訪問,
Description: The Error means The connection with the server has been terminated.
問題描述:這個錯誤是由於伺服器串連被中斷導致的。

If you check out the C:"Windows"system32"LogFiles"HTTPERR"httperr*.log files on the distribution server, you'll likely see either Timer_MinBytesPerSecond errors or Timer_ConnectionIdle errors. These are caused by IIS' default settings, contained within its metabase, which define the minimum traffic flow rate for a connection to be kept alive and the maximum idle time allowed before a connection is dropped. For some reason, SUS servers seem to take their good old time while downloading updates, and these parameters are exceeded and the distribution server drops 'em.

這個問題是由於在某些應用下,IIS的預設設定不當的

1) From IIS Manager, right click on the Internet Information Server (IIS) Manager root level folder and go to Properties. Check the box to enable direct metabase editing. Click OK.
1)開啟Internet 資訊服務(IIS)管理器,右鍵點“我的電腦”——屬性,選上“允許直接編輯設定資料庫(N)”,確定。
2) Open the C:"Windows"system32"inetsrv"MetaBase.xml file in Notepad. Do a search for "MinFileBytesPerSec". Change the setting for MinFileBytesPerSec from 240 to 0. Do another search, this time for "ConnectionTimeout" to be 600. Save changes and exit.
2)編輯C:"Windows"system32"inetsrv"MetaBase.xml檔案,把MinFileBytesPerSec 參數值從240改為0,把ConnectionTimeout參數設成600。
3) Restart the IIS Admin service to effect the changes.
3)重新起動IIS服務

替代方法

如果您安裝最新 for Windows Server 2003, ServicePack 後問題仍然存在網路連接可能太慢。 使用網路跟蹤來確定客戶是否接收響應和重傳資料包中延遲。 要變通解決此問題, 減少或禁用 IIS 6.0 以阻止從早關閉慢速客戶串連中 MinFileBytesPerSec 屬性。

其它網友對該解決辦法的評價和心得:

覺得這些解決方案都有問題,假如車輛防盜警報經常響,正確的解決方案是看看有誰常來打你車子的主意,或者把車子放在更安全的地方,而絕對不是關掉警報。
因為HTTP服務需要佔用TCP串連,而TCP串連時是需要佔用系統資源的,而且IIS為每個串連也需要分配相應的資源。目前的主機能夠處理上萬的串連就可以說是軟硬體設計都很不錯了(可以參見C10K )。假如惡意人員通過一台或者多台機器發起大量的串連,而不請求內容(這樣不需要消耗多少攻擊機器的頻寬),就可以大量消耗伺服器資源而達到拒絕服務的目的。
所以 IIS 需要關閉長時間非活動的串連,這個就是Timer_ConnectionIdle 的錯誤由來。

原來以為攻擊者可以給伺服器故意緩慢的發送和接收內容而消耗伺服器的資源,這樣可以避免伺服器對於Timer_ConnectionIdle 的保護,相應的IIS的防範就是 MinFileBytesPerSec 設定,MinFileBytesPerSec 屬性通過以最小的資料量保持串連,來禁止惡意的或軟體工作不正常的用戶端消耗資源。如果輸送量低於 MinFileBytesPerSec 設定的值,則終止串連。LOG裡面就會顯示Timer_MinBytesPerSecond錯誤(一些Timer_MinBytesPerSecond錯誤是因為 windows 2003 的http.sys錯誤引起的,解決方式是打上最新 ServicePack 。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.