??????? ???? ????? ???? deadlocks ??? ????? ????????? ?????? ??? ?? ??? ??????? ASP.NET

?????? ????????? ?????? ?????????
???? ???????: 821268 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ????? ????????? ?????? ??? ?? ????? Microsoft ASP.NET? ?? ?????? ??????? ???? ?????? ?????? ?????? ?????. ????? ?? ????? ?? ????? ?????? ?? ????????? (?? "?????") ?? ?????? ????? ?????? ???????. ?? ???? ???????? ?? ???? ???? ???? ?? ??? ????? ??????? ????? ??????. ?? ????? ??????? ??????? ?? ??? ????? ???????.
  • ??? ??? ?????? 5.0 ?? ????? ??????? ?????? (IIS)? ????? ??????? ??????? ?? ??? ???????:

       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? ????? ??????? ??????? ?? ??? ???????:

       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? ????? ??????? ??????? ?? ??? ??????:

       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 :
"System.InvalidOperationException: ?? ??? ???? ?????? ????? ??? ????? ?? ???? ThreadPool object ?????? ????? ".
?? ????? ???? ????? ????? ??????? ??????? ?? ????????:
"HttpException (0x80004005): Request timed ?? ??????. "
?????? ????? ??? ??????? ???? ??? ????????? ???? ????? ?????? HttpWebRequest ??????.

?????

?? ???? ??? ??????? ??? ASP.NET ???? ??? ?????? ????? worker ?????? ???? ?????? ??????? ???? ???? ??????? ??????? ?????? ?????.

???? ???? ?????? ??????? ??? ???? ??? ???? ???? ????? ?????? ?????? ????????? ???????? ???? ???? ?????? ????? ????? ??????? ???? ??????? ????? ?? ??????? ?? ???? ???. ??? ???? ??? ??? ??? ????? ????? ????? ?? ????? ??????? ?? ?????? ???????? ?? ??? ??? ????? ?? ?????? ????? ???????? ?????? ?????? ??????? ???? ???????. ????? ???? ?????? ThreadPool ??????? ??? ????? ????????? ???? ??? ?????? ?? ??? ?????.

??? ???? ??????? ????? ?? ThreadPool ????? ??? 10 ?????? ????? ???????? ?????? ???? ?????? ????? ?????? 10 ????? ?? ????????? ???????? ???? ????? ?? ????? ??????. ???? ??? ????? ?? ???????? ???? ??? ??? ?? ????? ????? ?? ????? ???????? ??? ??? ??? ???? ????? ???? ???????.

?? ???? ????? ??? ???? ??????? maxconnection ????? ????? ?????? ?????? ?????? ??? ?????????. ???? ???? ???? ??? ???? ??? ?? ?????. ??? ???? ??? ???? ?? ???? ?????? ?? ?????? ?? ????????? ??????? ??? ????? IP ???? ?? ??? ?????? ???? ???????? ??????? ??????? ????? ??????.

????

??? ??? ????????? ????? ??? ???????? ??????? ?? ????? Machine.config ?????? ?????? ????:
  • ???????????????
  • ??????????????
  • ???????????
  • minFreeThreads
  • ???????????????????????
  • maxconnection
  • ? executionTimeout
??? ??? ???????? ?????? ????? ????????? ???????:
  • ????? ??? ????? ASP.NET ???? ???? ??????? ?? ??? ????? ??? 12 ?????? ?? ???? ???????? ????????.
  • ???? ?????? ??????????? ???? ??? ???????? ?????? ??????? ?? ThreadPool ?????.
  • ??? ???? ?????? ??????? maxconnections . ????? ??????? ????? ?? ??? ??? ?????? IP ? AppDomains ???? ??? ?????????.
?????? ??????? ?????? ??? ????? ASP.NET 12 ?? ???? ???????? ???????? ??????? ??????. ??? ???? ?? ??? ??? ???? ???? ???? ??? ???? ?????????.

??????????????? ? ???????????

?????? ASP.NET ??????? ??????? ??????? ?????? ???? ?????? ???? ?????? ????? ?????? ??????? ????? ??????? ???????? ???????:
<processModel maxWorkerThreads="20" maxIoThreads="20">
??????? ??????????????? ???????? ??????????? ??? ?????? ??????? ?? ????? ?? ????? ???????? ????????. ?? ??? ??? ???? ??????? ??? ??? ???? ????? ?? ?????????? ???? ?????? ???? ?????? ????? ?????? ?? ???:
2 * ???????????????

minFreeThreads ? ???????????????????????

????? ASP.NET ???? ????? ?????? ????????? ???? ???? ??? ?????? ????? ???????? ?????? ???? ?????? ??????? ??? ?? ???? ?????? ???? ??? ???? ?? ??? ????:
<httpRuntime minFreeThreads="8" minLocalRequestFreeThreads="8">
??? ?? ????? ????? ?????? ???????? ??? ????? ?? ????? ???????? ??? ???? ????? ?????? ??????? ????? ?????? ?????. ????? ???? ASP.NET ??? ????? ???? ?? ????? ?????? ?? ??????? ?? ??? ?????:
(???????????????*??? ????? ???????? ????????)-minFreeThreads
?????? ??????? minFreeThreads ???????? ??????????????????????? ??? ?? ?????? ??????? ?? ????? ?? ????? ???????? ????????.

??????????????

??????? ?? ASP.NET 1.0 Service Pack 3 ? ASP.NET 1.1? ????? ASP.NET ???? ????? ??????? ?????? ???? ???? ????? ?????? ?? ?????? ????? ???????? ?? ???? ?????? ????? ???? ?????? ?? ??? ???.
<processModel minWorkerThreads="1">
?????? ??????? ???? ??? ?????? ???? ?? ???? ??? ??????? ???? ??????? ????? ???? ????? ?? ?????? ??????? ??????? ???? ??? ??????? ?? ?????? ? CLR ????????? "???? ???????-???" ????????. ??? ??????? ?????? ASP.NET ?????? ?????? ???? ?? ???? ???? ??? ????? ?????? ????? ASP.NET ??? ????? ?? ????? ??????? ????? ???? ?????? ?? ??????? ?? ??? ??????? ?? ?? ???? ???? ??? ??????? ??????? ?? ??? ??????? ?? ????? ????????. ????? ?????? ?????????? ??????? ?????????????? ?? 1. ???? ?????? ???? ??????? ?????????????? ?????? ???????.
minWorkerThreads = maxWorkerThreads / 2
???? ???????? ??????? ?????????????? ??? ?????? ?? ??? Web.config ?? ????? Machine.config. ??? ????? ??? ?????? ??? ??? ????? ???????? ????????.

maxconnection

???? ??????? maxconnection ??? ????????? ??????? ???? ????? IP ????. ???? ??????? ??? ???:
<connectionManagement>
    <add address="*" maxconnection="2">
    <add address="http://65.53.32.230" maxconnection="12">
</connectionManagement>
??? ???? ???? ????????? ???????? ??????? ??????? ??? ??? ?????? ????? ?? ????? IP? ??? ?? ???? ??????? ??? ???:
<connectionManagement>
    <add address="*" maxconnection="2">
    <add address="http://hostname" maxconnection="12">
</connectionManagement>
???????? ??? ?? ??????? ??????? ??? ???? ????? 80? ??????? ??? ?? ???? ?????? ??? ????? ?? URI? ?????? ??? ???:
<connectionManagement>
    <add address="*" maxconnection="2">
    <add address="http://hostname:8080" maxconnection="12">
</connectionManagement>
???? ????????? ?????? ????????? ???? ??? ???????? ????? ?? ??? ??????? ??? ????? ???????. ??? ???? ??? ????? ????? ??????? maxconnection ??? ????? ???? ???????. ???? ???????? ???? ??? ????? ??? ??????? ??? ????? ???? ???????? ????? ????? ??? ???? ???????? ?????? IP ???? ?? ?? AppDomain ?? ????? ?? ?????.

? executionTimeout

?????? ASP.NET ????? ??????? ?????? ??? ???? ?????? ???? ????? ?????:
<httpRuntime executionTimeout="90"/>
????? ???? ????? ??? ???? ???????? ??????? Server.ScriptTimeout .

?????? ??? ??? ?????? ???? ??????? ? executionTimeout ? ?? ????? ???? ????? processModel responseDeadlockInterval ????? ???????.

??????

?? ?? ???? ????????? ?????? ??? ?? ??? ????? ???? ?????????. ??? ???? ????????? ???????? ??????? ?? ?????? ??? ????? ????????? ????????.

If ????? ???? ??????? ???? ??? ??? ????? IP ???? ?? ?? ???? ASPX? ???? Microsoft ???????? ??????? ??????? ???????:
  • ????? ??? ??????? ??????????????? ???????? ??????????? ??? 100.
  • ????? ???? ??????? maxconnection ??? 12 *N (??? N ??? ????? ???????? ???????? ???? ????).
  • ??? ??? ??????? minFreeThreads ??? 88 *N ???????? ??????????????????????? ???76 *N.
  • ????? ???? ?????????????? ??? 50. ???? ?? ?????????????? ??? ????? ?? ??? ??????? ???? ???????. ??? ??????.
??? ??? ???????? ????? ???? ????? ????? ??? ?? ????? ???????? ???????? ??? ????. ??????? ???? ???? ??? ????? ???????? ???????? ?? ????? N. ??? ?????????? ??? ??? ???? ?????? ????? ????? ?????? ??????? ??? ??????? ??? ????? ???????? ???????? ???????? ????? ?? ??? ????? ???????? ???????? ???????. ??? ???? ??????? ??? ??? ???? ???? ????? ????? ?? ?????? ?? ????? ????? ?????? ??????? ???? N ?? ????? ????? 8 ????? ?? 4.

?????? ??? ??????? ??? ???????? ????? ????? 12 ??? ???? ????? ASP.NET ?? ???? ???????? ???????? ?? ??? ????? ??? 100 88 = 12. ????? ??? ?? 88 *N ?????? ?????? ??????? ? 88 *N ??? ????? ???? ?????? ??????? ????? ??????????? ?????? (??? ??? ??????? ??????? ??????????? ???? ???).

??? ???? ??????? ???? ???? ?????? ??????? ?????? ????? ?????? ??????? ?????. ???????? ??? ??? ?????? ????? ??????? ????? ??????? ??????? ??????? ???????? ?? ??? ???????.
<system.web>
	<processModel maxWorkerThreads="100" maxIoThreads="100" minWorkerThreads="50"/>
	<httpRuntime minFreeThreads="704" minLocalRequestFreeThreads="608"/>
</system.web>

<system.net>
	<connectionManagement>
		<add address="[ProvideIPHere]" maxconnection="96"/>
	</connectionManagement>
</system.net>

????? ??? ??????? ??? ???????? ??????? 12 ?????? ?? ???? ???????? ???????? ?? ????? IP ??? AppDomain. ????? ?? ?? ??? ?????????? ???? ??????? ???? ???? ??? ?????? ??????? ???????? ???? ??? ???????:
  • ?????? ????? ??????? (AppDomain) ???? ???.
  • ???? ?? ??? ????? ASPX ??? ???? ??? ????.
  • ??? ????? ???? ??????? ??? ????? IP ????.
??? ???? ??? ??????? ??? ???????? ????? ????????? ???? ????? ??? ????????? ??????? ?? ?????? ??????? ????? ????:
  • ??? ????? ??????? ??? ?????? IP ??????.
  • ??? ????? ??????? ???? ??? ????? ?????? (??? ?????? 302).
  • ????? ????? ????????.
  • ????? ?? AppDomains ??????.
?? ??? ????????????? ???? ????? ???? ???????? ???? ??? ??????? maxconnection ?????? ?????? ??????? minFreeThreads ???????? ??????????????????????? .

?????

??? ?????? ??? ???????.

??????? ????

??? ??? ????? ?? ??? ?????? ???????? ??? IIS 7.0 ???? ??? ??? ?? ASP.NET? ????? ??? ???????? Microsoft ???????:
??????? ???? ????? ASP.NET ??? IIS 7.5 IIS 7.0 ? IIS 6.0

????? ASP.net ?? IIS 7.0

?????

????? ?? ?????????? ????? ??? ???? ??? ???? ????? Microsoft (MSDN) ??????:
????? ???? ASP.NET

???????

???? ???????: 821268 - ????? ??? ??????: 25/???? ?????/1434 - ??????: 1.0
????? ???
  • Microsoft .NET Framework 2.0
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0
????? ??????: 
kbprb kbmt KB821268 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????821268

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com