???? ID: 821268 - ????? ???????: 05 ?????? 2010 - ??????: 2.0 Contention, ???? ????????, ?? ?? ?? asp.NET ??????????? ?? ??? ???? ?????? ????? deadlocks
?? ????? ????????? ???? ??? ???? ?? ??? XML ??? ???? ?? ??? asp.NET ?????????, contention, ???? ????????, ?? deadlocks ????? ?? ???? ???
??????? ?? ??????? ?? ???? ?? ?? ?????? ???????? (?? "????") ?? ????? ?? ????????? ???? ?? ??? ???? ???? ??? ??? ??? ??? deadlock suspected ??, ????? ????????? ????????? ?? ???? ??? ????????? ????? ??? ??? ???? ????? ????? ??????? ?? ???? ???
? System.InvalidOperationException: ???????? ?? ????? ???? ?? ??? ThreadPool ???????? ??? ???? ???????? ????? ??????? ???? ??. ? ? HttpException (0x80004005): ?????? ???? ??? ?? ???. ? ?????? ?????? ??????? ?? ???? ?? ??????? asp.NET ????? ????? ?? ??????? ????? ??????? ??? ???????? ?? ????????? ???? ?? ??? ????? ?? ???? ??? ?? ?? ?????? ?? ????? ???? ??? ??????????, ?? ??? ???? ?? ??? ???? ??? ???? ????? ???? ?? ?? ?????? ????? ?? ??? ?? ????????? ???? ?? ??? ?? ????? ????? ?? ??? ???? ?? ?????? ?? ??????? ???? ?? ??? ?? ????? ????? ?????? ???????, ??? ?????? ?????????????? ?? ?? ?????????? ?? ???????? ??, ?? ??? ?? ???? ?? ????? ?? ??? ??? ?? many ?? ????? ?? ?? ??????? ????? ???????? ?????, ?? ?? ???? ??? exhaust ???????? ThreadPool ?? ?? ?? ??? ??? ?????? ??? ???? ??? ??? ?????? ?? ???, suppose ?? ThreadPool 10 ????? ????? ?? ??? ????? ??, ?? ??? 10 ????? ????? ????????? ??? ?? ????????? ???? ?? ??? ??? ?????? ?? ????????? ?? ??? ?? ?? ??????? ??? ???? ????? ?????? ?? ???? ?? ?? ??? ????? ?????? ?? ThreadPool ???? ?? ??? ?????????? ?? ????? ??? ?? ??? ??????? ?????? ????????? ???? ?? ???? ???? ???? ???? ??????? ????? contention ?? ??maxconnection???????? ??System.Net??????? ?? ?????? ?? ????? ???? ?? ??? ??? ????? ????? ???? ??? ??????????, ?? ???? ??? ?? ??? ??? ????????? ???????, ?? ????????? ?? ?????? ???? ?? ??? ??? ??? IP ??? ?? ?? ??? ??? ?? ?????? ????? ?? ???, ??? ??????? ?? ???? ?? ??? ?????? ??????? ?? ????????? ????? ?????????? ???????? ?? ?? ???? ?? ??? ?? ????? ???????? ?? ???? ?????? ?? ??????? ??? ???? ?? ??? ???? Machine.config ????? ??? ???? ?? ???? ???:
maxWorkerThreads, ??maxIoThreadsASP.NET uses the following two configuration settings to limit the maximum number of worker threads and completion threads that are used:2*maxWorkerThreads minFreeThreads, ??minLocalRequestFreeThreadsASP.NET also contains the following configuration settings that determine how many worker threads and completion port threads must be available to start a remote request or a local request:(maxWorkerThreads*number of CPUs)-minFreeThreads ???:TheminFreeThreadsparameter and theminLocalRequestFreeThreadsparameter are not implicitly multiplied by the number of CPUs.minWorkerThreadsAs of ASP.NET 1.0 Service Pack 3 and ASP.NET 1.1, ASP.NET also contains the following configuration setting that determines how many worker threads may be made available immediately to service a remote request.maxconnectionThemaxconnectionparameter determines how many connections can be made to a specific IP address. The parameter appears as follows:executionTimeoutASP.NET ?????? ???????? ??? ?? ????? ???? ?? ??? ????? ??????????? ?????? ?? ????? ???? ??:???:??? ?? ?? ??? ?????executionTimeout???????? ?? ???, ???? ?? ??? ???? ?? ?? ??????? ???? ?? ???processModel responseDeadlockInterval???????? ??????? ??????????? ?????? ??? ???????? ???????? ??? ??????????? ?? ??? ??? ???? ?? ???? ??? ???????, ???????? ????? ????? ??? ?? ???? ?? ?? ??????? ??????? ????? ?? ??????? ?? ?? ??? ???? ??? ???? ?? ??? ??? ??? IP ??? ?? ???????? ASPX ????? ???? ???, ?? Microsoft ??????? ???? ?? ?? ?? ????? ??????????? ???????? ?? ????? ????:
???:?? ?? ?? ??????????? ?? ????? ?? ?? ???? ??? ????????? ?????? 12 asp.NET ?????? CPU ?? ????? ?? ?? ??? ??? ???????100-88 = 12. ?????, ?? ?? ?? 88 *N????? ????? ?? 88 *N????? ????? ??????? ???? ????? (??? ??? ???? callbacks ?? ??? ?? ??? ???) ?? ??? ?????? ???? ?????? ?? ???, ???? ??? ??? ????? ?? ??? ???????? ?? hyperthreading ????? ??? ?? ??????? ?? ?????? ??, ???? ???? ????? ????? ??? ?? ?? ???? ??? ???????? ??????????? ???????? ?? ???? ??, ?? ?? ?? ??????????? ?? ????? ????, 12 ??????? ?????? CPU ?? ????? ????? AppDomain ???????? ?? ??? IP ???? ?????, ?????????? ???????? ??? ???? ?? contention ?? ???? ??, ?????? ??????? ?? ??? ????????? ?? ?? ??? ??? ?? ThreadPool exhausted ???? ??:
???????? ??????? ??????? ?????? ??.. ???? ?????????? ?? ???? ???????? ?? asp.NET ?? ??? IIS 7.0 ?? contention ? ??? ???, ?? ????? Microsoft blogs ?????: IIS 7.0 ?? 6.0 ?? asp.NET ????? ?? ????? HTTP://blogs.MSDN.com/tmarq/Archive/2007/07/21/ASP-NET-thread-usage-on-IIS-7-0-and-6-0.aspx
(http://blogs.msdn.com/tmarq/archive/2007/07/21/asp-net-thread-usage-on-iis-7-0-and-6-0.aspx)
IIS 7.0 ??? ASP.NET ????HTTP://blogs.MSDN.com/webtopics/Archive/2009/02/13/ASP-NET-hang-in-IIS-7-0.aspx
(http://blogs.msdn.com/webtopics/archive/2009/02/13/asp-net-hang-in-iis-7-0.aspx)
?????????? ??????? ?? ???, ????? Microsoft ?????? ??????? (MSDN) ??? ???? ?? ????:: HTTP://msdn2.Microsoft.com/en-us/library/ms998549.aspx
(http://msdn2.microsoft.com/en-us/library/ms998549.aspx)
???? ?????? ??????????????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??. ?????????? ?? ??????? ????????? ??????? ??:821268
(http://support.microsoft.com/kb/821268/en-us/
)
| ???? ?????? ???? ?????? ??????
????????? ?????? ??????? ???????? ??????
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

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