阿里雲雲端服務器上禁用Windows虛擬記憶體引發的重啟

來源:互聯網
上載者:User

昨天(2013年8月6日)下午,承載www.cnblogs.com主站的兩台雲端服務器分別自動重啟了1次,由於這兩台雲端服務器使用了負載平衡(SLB),重啟並未影響網站的正常訪問。

與這次重啟相關的Windows事件記錄如下:

雲端服務器1(8核CPU,8G記憶體):

14:36:22 —— Windows successfully diagnosed a low virtual memory condition. The following programs consumed the most virtual memory: w3wp.exe (1968) consumed 3200438272 bytes, w3wp.exe (6272) consumed 3027517440 bytes, and w3wp.exe (584) consumed 643993600 bytes.

(15:09:04 —— 重啟...)

15:09:56 —— Crash dump initialization failed!(這個錯誤是因為禁用了虛擬記憶體無法建立dump)

15:09:58 —— The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly.

15:10:43 —— The previous system shutdown at 15:09:04 on 2013/8/6 was unexpected.

雲端服務器2(8核CPU,8G記憶體):

17:33:45 —— Windows successfully diagnosed a low virtual memory condition. The following programs consumed the most virtual memory: w3wp.exe (5720) consumed 3194974208 bytes, w3wp.exe (2020) consumed 3034882048 bytes, and w3wp.exe (1832) consumed 517074944 bytes.

(17:40:44 —— 重啟...)

17:42:11 —— Crash dump initialization failed!

17:42:12 —— The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly.

17:42:40 —— The previous system shutdown at 17:40:44 on 2013/8/6 was unexpected.

從事件記錄可以看出,在重啟發生前的一段時間內,w3wp進程消耗了大量的虛擬記憶體(單個w3wp進程最高消耗了近3G),而我們禁用了Windows的虛擬記憶體,在這種情況下某種未知因素引發了系統Crash,從而造成Windows自動重啟。

(你也許會問,Windows預設是啟用虛擬記憶體的,為什麼要多此一舉禁用它?當時是因為發現啟用虛擬記憶體會造成雲端服務器CPU佔用高、波動大,詳見博文雲端運算之路-阿里雲上:兩個重要突破。)

為了臨時解決這次遇到的重啟問題,昨天晚上我們啟用了這兩台雲端服務器的虛擬記憶體。

可是今天我們在寫這篇博文的時候,在11:35~11:40左右,這兩台雲端服務器竟然都出現了CPU 100%的問題,造成網站不能正常訪問。

今天故障的原因還在進一步分析,如果是啟用Windows虛擬記憶體引起的,那我們就進退兩難了——虛擬記憶體,禁還是不禁?

查看本欄目更多精彩內容:http://www.bianceng.cnhttp://www.bianceng.cn/Servers/cloud-computing/

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.