httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From go1...@mailnew.com
Subject Re: [users@httpd] number of connection on Windows Apache
Date Fri, 19 Aug 2011 19:33:48 GMT


On Thu, 18 Aug 2011 14:22 -0500, "William A. Rowe Jr."
<wrowe@rowe-clan.net> wrote:
> On 8/17/2011 3:51 PM, go1010@mailnew.com wrote:
> > Hi, I am using Apache 2.2.17 on Windows Server. To experiment with the
> > limit of number of simultaneous connection, I used the directive
> > ThreadsPerChild set the number to 1. So I am only supposed to be able to
> > have one connection at a time. But I am surprised to see I can use two
> > curl clients to download files at the same time. I wonder how to explain
> > this.
> > 
> > The following is my setting.
> > <IfModule mpm_winnt_module>
> >     ThreadsPerChild      1
> > </IfModule>
> 
> I believe you are observing the distinction between the accept pool
> and the worker dispatch pool.  The server has accepted the second
> connection, and is stalled waiting for a worker to dispatch to (which
> you had fixed at one, and it is working on the first connection).
> 

I suspected this as well and here is the experiment I did. I start one
curl client with low data rate with option  "--limit-rate 10" (10 bytes
per second), and afterwards I start a normal curl client. It seems
initially the second curl client waits for something for a few seconds,
and then it quickly finishes downloading. After that the first curl
client download is still going on. So it seems the second connection
does not need to wait for the first one to finish. By the way,  is there
a way observe the two pool? I used server-status module, and I can see
very clearly there is only one worker there. 

W...............................................................
................................................................


Thanks, Andrew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message