Re: threads
- From: smarty <smarty@xxxxxxxxxxxxx>
- Date: Sun, 24 Dec 2006 06:21:00 -0800
Hi Chris,
Thanks for the info. The code in the listed article adds code to a aspx
page to which uses the ThreadPool.AvailableWorkerThreads and
ThreadPool.MaxWorkerThreads.
I have implemented the code and it returns 100 for the maxthreads and
available threads as well as maxiothreads which you suggested should be 100.
Is there anything obvious I am doing wrong?
Thanks
"Chris Mullins" wrote:
IO Threads are different that threadpool threads..
There are typically 1000 IO Threads listed as being "available". These
threads are tied to IO Completion Ports, and aren't quite what you're
looking for. They're used for things like callbacks coming from
Socket.BeginRead/BeginWrite, or File.BeginRead/BeginWrite.
For standard processing, you want normal threadpool worker threads, which
are 25 per processor by default.
--
Chris Mullins
"smarty" <smarty@xxxxxxxxxxxxx> wrote in message
news:1F228C43-4A63-4F12-93E9-18683AEB6E0C@xxxxxxxxxxxxxxxx
Hi Steven,
I have implemented the thread code you suggested. The maxworkerthreads
and
maxiothreads seem to be set to 100, which is surprising because I thought
this was 20 per processor
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenetchapt17.asp.
Is the default value difference for .net 2 than .net 1.1?
Thanks
"Steven Cheng[MSFT]" wrote:
Thanks for your followup Smarty,
I think the .net managed threadpool's statistics are what you want. You
can
create a custom to monitor the info.
Also, since you want to see whether your ASP.NET webservice application's
performance is hit by blocking thread, you can also checked the following
counters:
**Requests Queued
**Requests Rejected
#Performance Counters for ASP.NET
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconperformancecounter
sforaspnet.asp?frame=true
Generally, ASP.NET use clr threadpool's IO and Worker thread to process
requests. However, when there is no available thread pool thread, the
requests will be queued, and if it exceed queued limitation, any
sequential
requests will be rejected. So the two counters are also very important.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.
- Follow-Ups:
- Re: threads
- From: Steven Cheng[MSFT]
- Re: threads
- References:
- RE: threads
- From: Steven Cheng[MSFT]
- RE: threads
- From: smarty
- RE: threads
- From: Steven Cheng[MSFT]
- Re: threads
- From: Chris Mullins
- RE: threads
- Prev by Date: Re: threads
- Next by Date: Re: threads
- Previous by thread: Re: threads
- Next by thread: Re: threads
- Index(es):
Relevant Pages
|
Loading