Re: threads



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.





.



Relevant Pages

  • Re: threads
    ... For standard processing, you want normal threadpool worker threads, which ... **Requests Rejected ... #Performance Counters for ASP.NET ...
    (microsoft.public.dotnet.framework.performance)
  • RE: threads
    ... create a custom to monitor the info. ... **Requests Rejected ... #Performance Counters for ASP.NET ...
    (microsoft.public.dotnet.framework.performance)
  • Re: [40K] The Counters that ate Sheboygan...
    ... There's still half a page of space left, so if anyone has any requests ... a lot of Army books I'm not uber familiar with. ... I've already gotten a request for 'Blood Frenzy' and 'Fire ... Frenzy' counters for Chaos Dreads - anyone else? ...
    (rec.games.miniatures.warhammer)
  • Re: Problem with SQLOLEDB and iis 6 - threading?
    ... what are you doing after connection? ... > When I put load on it it starts to process requests and perfmon counters ... > I remeber in the old days that it was possible to change the threading model ...
    (microsoft.public.data.ado)
  • [40K] The Counters that ate Sheboygan...
    ... I've knocked out all the additional counters requested so ... There's still half a page of space left, so if anyone has any requests ... games as vehicle movement affects shooting and assault) and Minefield & ... Design Rules / Vehicle Design Rules) fans out there. ...
    (rec.games.miniatures.warhammer)

Loading