Re: MaxRequestsPerChild for worker mpm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> It's actually max connections per child, but that makes your results> even more 
>wrong

Shouldn't getpid() return the pid of the child? I counted some pids in our log 
files and they have around the same number of occurences.

> Maybe they die due to MaxSpareThreads though.  Try setting it equal to> 
>MaxClients.

The load is constantly 30 hits per second. We have around 7 httpd processes 
 running, 2 of them remaining active since the server start, and the rest being 
restarted at each 10 minutes. Increasing the MaxRequestsPerChild to 10,000,000 
leads to the same behaviour, but this time 3 child processes are not being 
restarted.


----- Original Message ----
From: Eric Covener <covener@xxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Sent: Tue, November 2, 2010 8:05:58 PM
Subject: Re:  MaxRequestsPerChild for worker mpm

On Tue, Nov 2, 2010 at 12:17 PM, alin vasile <alinachegalati@xxxxxxxxx> wrote:
> After some debugging it proves that the configuration directive is correctly
> recognized by httpd. When we are logging the following variable in a module 
for
> each request :
>
>  char *id = apr_psprintf(r->pool, "%" APR_PID_T_FMT "-%d", getpid(),
> apr_atomic_inc32(&next_id));
>
> there are around 3- 4 thousands occurrences for each pid, below the max 
setting
> of 100,000.
>

It's actually max connections per child, but that makes your results
even more wrong.

>   MaxSpareThreads      30

Maybe they die due to MaxSpareThreads though.  Try setting it equal to
MaxClients.

>
>
>
> ----- Original Message ----
> From: alin vasile <alinachegalati@xxxxxxxxx>
> To: users@xxxxxxxxxxxxxxxx
> Sent: Tue, November 2, 2010 5:18:56 PM
> Subject: Re:  MaxRequestsPerChild for worker mpm
>
> It is worker...
>
> ./httpd -l
> Compiled in modules:
>  core.c
>  mod_authn_file.c
>  mod_authn_default.c
>  mod_authz_host.c
>  mod_authz_groupfile.c
>  mod_authz_user.c
>  mod_authz_default.c
>  mod_auth_basic.c
>  mod_include.c
>  mod_filter.c
>  mod_log_config.c
>  mod_env.c
>  mod_setenvif.c
>  mod_version.c
>  worker.c
>  http_core.c
>  mod_mime.c
>  mod_status.c
>  mod_autoindex.c
>  mod_asis.c
>  mod_cgid.c
>  mod_negotiation.c
>  mod_dir.c
>  mod_actions.c
>  mod_userdir.c
>  mod_alias.c
>  mod_so.c
>
>
>
>
>
> ----- Original Message ----
> From: Tom Evans <tevans.uk@xxxxxxxxxxxxxx>
> To: users@xxxxxxxxxxxxxxxx
> Sent: Tue, November 2, 2010 5:05:16 PM
> Subject: Re:  MaxRequestsPerChild for worker mpm
>
> On Tue, Nov 2, 2010 at 1:10 PM, alin vasile <alinachegalati@xxxxxxxxx> wrote:
>> sorry, my bad here. we are using the worker mpm.
>>
>
> Your original message said you were using prefork. httpd -l to confirm please.
>
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>
>
>
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>
>
>
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>



-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


      

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux