Windows2008作業系統 IIS7 IIS7.5 進程池經常死最終解決方案

來源:互聯網
上載者:User

標籤:

 

作為一個伺服器維護人員,經常遇到不可解決的問題,這問題一直存在,一直困擾我多時,經常淩晨1-2點起床,就為了重啟一下進程池

錯誤應用程式名稱: w3wp.exe,版本: 7.5.7600.16385,時間戳記: 0x4a5bd0eb
錯誤模組名稱: ntdll.dll,版本: 6.1.7600.16385,時間戳記: 0x4a5be02b
異常代碼: 0xc0000374
錯誤位移量: 0x00000000000c6cd2
錯誤進程 ID: 0xb54c
錯誤應用程式啟動時間: 0x01d0c0d94f91529a
錯誤應用程式路徑: c:\windows\system32\inetsrv\w3wp.exe
錯誤模組路徑: C:\Windows\SYSTEM32\ntdll.dll
報告 ID: 8e9b8672-2ccc-11e5-9d45-90b11c3fe265

// string method_Recycle = "Recycle"; //Start開啟 Recycle回收 Stop 停止
string method_Start = "Start";
DirectoryEntry appPool = new DirectoryEntry("IIS://localhost/W3SVC/AppPools");
try
{
foreach (DirectoryEntry item in appPool.Children)
{
string AppPoolCommand = item.Properties["ManagedPipelineMode"].Value.ToString();
string ManagedRuntimeVersion = item.Properties["ManagedRuntimeVersion"].Value.ToString();//,net版本號碼
string AppPoolState = item.Properties["AppPoolState"].Value.ToString();//目前狀態
if (AppPoolState != "2")
{
DirectoryEntry findPool = appPool.Children.Find(item.Name, "IIsApplicationPool");
findPool.Invoke(method_Start, null);
appPool.CommitChanges();
appPool.Close();
var IIsMsg = string.Format("[{0}],名稱:[{1}],NET版本:{2},標識:{3},目前狀態:[{4}],時間:{5}\n", "Windows2008 Server", item.Name, ManagedRuntimeVersion, item.SchemaClassName, "已啟動", DateTime.Now.ToString());
WriteText(IIsMsg);
ImportDataLog.WriteLog(item.Name, IIsMsg);
}
}
//lblCount_text.Text = i.ToString();
}

長期運行,給別人再CC攻擊多幾下都沒問題,自動啟動進程池!!

Windows2008作業系統 IIS7 IIS7.5 進程池經常死最終解決方案

聯繫我們

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