由于asp.net 處理進程在machine.config配置文件中的配置為<processModel autoConfig="true" />,這意味著你的asp.net 應(yīng)用程序使用的性能參數(shù)依賴于machine.config的配置。
下面幾個參數(shù)是自動配置的:
這幾個參數(shù)會和你的應(yīng)用程序發(fā)生這樣的癥狀相關(guān)“爭用、 性能下降和死鎖進行 Web 服務(wù)請求從 ASP.NET 應(yīng)用程序時”:
進行從 ASP.NET 應(yīng)用程序, 調(diào)用 XMLWeb 服務(wù)時可能會遇到爭用、 性能下降和死鎖。 客戶可能報告請求停止響應(yīng) (或 " 掛起 ") 或需要很長時間來執(zhí)行。 如果懷疑死, 可能回收輔助進程。 應(yīng)用程序事件日志中可能會收到以下消息。 • 如果您使用 MicrosoftInternet 信息服務(wù) (IIS) 5.0, 會應(yīng)用程序事件日志中您收到以下消息:
Event Type: Error
Event Source: ASP.NET 1.0.3705.0
Event Category: None
Event ID: 1003
Date: 5/4/2003
Time: 6:18:23 PM
User: N/A
Computer: <ComputerName>
Description:
aspnet_wp.exe (PID: <xxx>) was recycled because it was suspected to be in a deadlocked state.
It did not send any responses for pending requests in the last 180 seconds.
• 如果您使用 IIS 6.0, 會應(yīng)用程序事件日志中您收到以下消息:
Event Type: Warning
Event Source: W3SVC-WP
Event Category: None
Event ID: 2262
Date: 5/4/2003
Time: 1:02:33 PM
User: N/A
Computer: <ComputerName>
Description:
ISAPI 'C:\Windows\Microsoft.net\Framework\v.1.1.4322\aspnet_isapi.dll' reported itself as
unhealthy for the following reason: 'Deadlock detected'.
• 如果您使用 IIS 6.0, 會系統(tǒng)事件日志中您收到以下消息:
Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 1013
Date: 5/4/2003
Time: 1:03:47 PM
User: N/A
Computer: <ComputerName>
Description:
A process serving application pool 'DefaultAppPool' exceeded time limits during shut down.
The process id was '<xxxx>'.
可能會進行對 HttpWebRequest.GetResponse 方法調(diào)用時還收到以下異常錯誤信息:
ôSystem.InvalidOperationException 有是沒有足夠的空閑線程 ThreadPool 對象以完成 operation.ö 中:
還可能在瀏覽器收到以下異常錯誤信息:
請求定時 out.ö ôHttpException (0 x 80004005):
注意 本文還適用于應(yīng)用程序直接使 HttpWebRequest 請求。
如對本文有疑問,請?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會為你解答??! 點擊進入論壇