Re: IIS6 APS Thread Use

From: Egbert Nierop \(MVP for IIS\) (egbert_nierop_at_nospam.invalid)
Date: 02/01/05


Date: Tue, 1 Feb 2005 09:51:48 +0100


"AIMTech" <AIMTech@newsgroups.nospam> wrote in message
news:OWzbc97BFHA.2380@tk2msftngp13.phx.gbl...
> Thanks for the reply.
>
> For testing IIS6 is configured to have 20 ASP threads and MACT is
> configured
> to have 50 concurrent users.
>
> The COM application *is* multi-threaded - I was giving an extreme example
> with it settling on using a single thread. With 50 concurrent users the
> number of ASP threads in use can be between 1 and all 20 but it tends to
> use
> the lower number.
> I just don't understand why, if there are threads available to IIS why it
> does not use them?

Because MS has made IIS optimized between resources (threads) and
scalability (the max no of users vs throughput).
In a multithreaded system, simply allocating 100 threads per CPU in the ASP
Thread pool, would cause a lot heavy thread context switching.

> Thanks
> ----------------------------------------------------------------------------
> ----------
>
> "Egbert Nierop (MVP for IIS)" <egbert_nierop@nospam.invalid> wrote in
> message news:#brX6ajBFHA.2600@TK2MSFTNGP09.phx.gbl...
>> "AIMTech" <AIMTech@newsgroups.nospam> wrote in message
>> news:u5CwKoiBFHA.2392@TK2MSFTNGP14.phx.gbl...
>> > Is there an explanation somewhere as to how IIS6 determins how many ASP
>> > threads its actually going to use?
>> >
>> > I have configured IIS6 to have 20 threads (ASPProcessorThreadMAX) but
>> > it
>> > rarely uses them all.
>> >
>> > I am using the MACT test tool to stress test and with 50 concurrent
> users
>> > I
>> > quite often see only a single ASP thread being used the other 49 are on
>> > the
>> > Requests Queued. The Request Wait Time in Perfmon can be averaging
> around
>> > 5
>> > or 6 seconds and there is plenty of spare CPU.
>>
>> using MACT, do you also enable 20 users (connections)?
>> Do you use COM objects such as VB6 which you put in the application or in
>> the session? If yes, that's the reason that IIS turns to single threading
>> (as if). It needs to marshale and synchronize.
>>
>>
>> --
>> compatible web farm Session replacement for Asp and Asp.Net
>> http://www.nieropwebconsult.nl/asp_session_manager.htm
>>
>>
>> > The application quite often has long running queries (15 to 20 seconds
> per
>> > request) and rather than use another thread IIS will quite often just
> keep
>> > ticking along with the threads its using with the result that the
> Request
>> > Wait Time can jump significantly.
>> >
>> >
>> >
>> >
>>
>
>



Relevant Pages

  • Re: IIS6 APS Thread Use
    ... For testing IIS6 is configured to have 20 ASP threads and MACT is configured ... to have 50 concurrent users. ... with it settling on using a single thread. ... The Request Wait Time in Perfmon can be averaging ...
    (microsoft.public.inetserver.iis)
  • Apache Concurrent Users
    ... I am doing a benchmark of IIS Vs Apache using QALoad. ... What are the parameters I can tweak to support maximum concurrent users on single apache box? ... How many concurrent user I can support on IIS 6 with default settings? ...
    (Pen-Test)
  • Re: Conncurent Connections in 2003 server
    ... They get an error message? ... I know for sure that IIS can handle more than 10 users. ... server behaved differently, and it looked like you had concurrent users, but ... the problem is with the website. ...
    (microsoft.public.inetserver.iis)
  • Max Concurrent users
    ... I was just wondering what the max number of concurrent users that IIS can ... or when it becomes advisable to start spreading the load? ...
    (microsoft.public.inetserver.iis)
  • Re: web service performance problem
    ... There is a setting in IIS that limits the number of concurrent users to ... 10 by default in WinXP (I think - I can't verify because i don't have ...
    (microsoft.public.dotnet.framework.webservices)