You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Qingshan Xie <xi...@yahoo.com> on 2006/10/09 19:04:06 UTC

[users@httpd] Question on hit account when KeepAlive On?

If my apache "KeepAlive On", multiple hits will go to
the server via the same connection.  In this case, how
apache count the hits if I keep hit URLs to the same
server? 

I did a test when the KeepAlive turned on, the child
did not exit after I clicked the urls over 20 times
while my MaxRequestsPerChild was only 10.  Sounds the
Apache counts multiple hits to the same connection as
1.  Can some one help me to clarify it?

Many Thanks, Q.Xie

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
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


Re: [users@httpd] Question on hit account when KeepAlive On?

Posted by Qingshan Xie <xi...@yahoo.com>.
Thanks Joshua.  that url answered my question.

  I have another question about MaxSpareThreads.  If
the number of spare threads is over MaxSpareThreads,
will Apache parent kill the spare child?  If the
number of hits to that spare child is still below the
limit of MaxRequestsPerChild, will Apache parent still
kill it? If two children are running which one should
be
killed?  

Thanks Again.
Q.Xie

--- Joshua Slive <jo...@slive.ca> wrote:
> ..... connection as
> > 1.  Can some one help me to clarify it?
> 
> This is quite clearly documented:
>
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild
> 
> Joshua.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
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


Re: [users@httpd] Question on hit account when KeepAlive On?

Posted by Joshua Slive <jo...@slive.ca>.
On 10/9/06, Qingshan Xie <xi...@yahoo.com> wrote:
> If my apache "KeepAlive On", multiple hits will go to
> the server via the same connection.  In this case, how
> apache count the hits if I keep hit URLs to the same
> server?
>
> I did a test when the KeepAlive turned on, the child
> did not exit after I clicked the urls over 20 times
> while my MaxRequestsPerChild was only 10.  Sounds the
> Apache counts multiple hits to the same connection as
> 1.  Can some one help me to clarify it?

This is quite clearly documented:
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild

Joshua.

---------------------------------------------------------------------
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


Re: [users@httpd] Question on hit account when KeepAlive On?

Posted by David Salisbury <sa...@globe.gov>.
Are you sure your browser didn't just cache the contents?
Clear your cache between requests and see if that doesn't effect
things a bit.

KeepAlive should not effect your hits count either way.

-ds

----- Original Message ----- 
From: "Qingshan Xie" <xi...@yahoo.com>
To: <us...@httpd.apache.org>
Sent: Monday, October 09, 2006 11:04 AM
Subject: [users@httpd] Question on hit account when KeepAlive On?


> If my apache "KeepAlive On", multiple hits will go to
> the server via the same connection.  In this case, how
> apache count the hits if I keep hit URLs to the same
> server? 
> 
> I did a test when the KeepAlive turned on, the child
> did not exit after I clicked the urls over 20 times
> while my MaxRequestsPerChild was only 10.  Sounds the
> Apache counts multiple hits to the same connection as
> 1.  Can some one help me to clarify it?
> 
> Many Thanks, Q.Xie
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> 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
> 
>


---------------------------------------------------------------------
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