You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Stas Bekman <st...@stason.org> on 2002/06/06 14:39:37 UTC

server start's warnings on stop?

Hmm, why do I get this warning on stop:

WARNING: MaxClients (10) is not an integer multiple
   of ThreadsPerChild (3), lowering MaxClients to 9
   for a maximum of 3 child processes,
httpd (no pid file) not running

I do get it on start as well, which is expected, but why on stop?

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: server start's warnings on stop?

Posted by Stas Bekman <st...@stason.org>.
Jeff Trawick wrote:
> Stas Bekman <st...@stason.org> writes:
> 
> 
>>Hmm, why do I get this warning on stop:
>>
>>WARNING: MaxClients (10) is not an integer multiple
>>   of ThreadsPerChild (3), lowering MaxClients to 9
>>   for a maximum of 3 child processes,
>>httpd (no pid file) not running
>>
>>I do get it on start as well, which is expected, but why on stop?
> 
> 
> The config file is read during stop processing now ("apachectl stop"
> calls "httpd -k stop").  One benefit is that if you move your pidfile
> to the non-default location it will be found without you having to
> edit apachectl.

That's a dangerous change. Because:

1. if httpd.conf is modified after the server has started and something 
is broken, it's impossible to stop the server. I've just tested, it'll 
just keep on running. The only way to stop it is to kill(1).

2. the reparse of the config file may have side effects. e.g. in 
mod_perl we embed Perl code in httpd.conf, mainly used for creating 
complex and big configuration file, using databases, etc. It's most 
likely not desirable to run the code on server stop. At least we need to 
have some flag to skip the run on stop.


p.s. if this change is becoming permanent, shouldn't it eliminate the 
need for specifying the location of a pidfile in apachectl?

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: server start's warnings on stop?

Posted by Jeff Trawick <tr...@attglobal.net>.
Stas Bekman <st...@stason.org> writes:

> Hmm, why do I get this warning on stop:
> 
> WARNING: MaxClients (10) is not an integer multiple
>    of ThreadsPerChild (3), lowering MaxClients to 9
>    for a maximum of 3 child processes,
> httpd (no pid file) not running
> 
> I do get it on start as well, which is expected, but why on stop?

The config file is read during stop processing now ("apachectl stop"
calls "httpd -k stop").  One benefit is that if you move your pidfile
to the non-default location it will be found without you having to
edit apachectl.

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...