You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Harald Falkenberg <ha...@desy.de> on 2010/07/02 23:50:04 UTC

[users@httpd] strange behaviour during httpd start: chown operation 1 pro second

Hello,

I'm using apache server 1.3.41 on a solaris 10 system (x86). in httpd.conf 
I set:
 	...
 	MinSpareServers 10
 	MaxSpareServers 90
 	StartServers 90
 	MaxClients 90
 	...

When starting apache via 'apachectl start' I see that these 90 processes 
were started quite immediately, but it took almost 1,5 minuts before each 
of the child processes changed their owner from root to another  local 
user.

it is also suspicous, that when studying the ps output, that between each 
change of owner for a further child process, a period of 1 second seemed
always be used.

In the documentation I find no hints for this behaviour. Only the 
behaviour of minspareserver and maxspareservers give hints, that there is 
a method implemented to spawn a certain amount of child  processes per 
second.

However, does someone know what is causing this observed behaviour?

The problem here is, that no request is served before not all child 
processes changed the ownership.

Thank you in advance!

Harald

---------------------------------------------------------------------
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] strange behaviour during httpd start: chown operation 1 pro second

Posted by Harald Falkenberg <ha...@desy.de>.
Hello,

yes, I'm using NIS. - How can I find out, if NIS is really the problem? I 
studied the system calls via truss, but could not determine that NIS is a 
problem here. Maybe I have overseen something.

How did you worked around this problem?

regards
  	Harald


On Sat, 3 Jul 2010, Eric Covener wrote:

> On Fri, Jul 2, 2010 at 5:50 PM, Harald Falkenberg
> <ha...@desy.de> wrote:
>> Hello,
>>
>> I'm using apache server 1.3.41 on a solaris 10 system (x86). in httpd.conf I
>> set:
>>        ...
>>        MinSpareServers 10
>>        MaxSpareServers 90
>>        StartServers 90
>>        MaxClients 90
>>        ...
>>
>> When starting apache via 'apachectl start' I see that these 90 processes
>> were started quite immediately, but it took almost 1,5 minuts before each of
>> the child processes changed their owner from root to another  local user.
>>
>> it is also suspicous, that when studying the ps output, that between each
>> change of owner for a further child process, a period of 1 second seemed
>> always be used.
>
>
> Are you using NIS or LDAP on your system?  The only hang in this
> neighborhood I've ever seen was when LDAP was used for groups and
> getgroups() would take seconds.
>
> -- 
> Eric Covener
> covener@gmail.com
>

Re: [users@httpd] strange behaviour during httpd start: chown operation 1 pro second

Posted by Eric Covener <co...@gmail.com>.
On Fri, Jul 2, 2010 at 5:50 PM, Harald Falkenberg
<ha...@desy.de> wrote:
> Hello,
>
> I'm using apache server 1.3.41 on a solaris 10 system (x86). in httpd.conf I
> set:
>        ...
>        MinSpareServers 10
>        MaxSpareServers 90
>        StartServers 90
>        MaxClients 90
>        ...
>
> When starting apache via 'apachectl start' I see that these 90 processes
> were started quite immediately, but it took almost 1,5 minuts before each of
> the child processes changed their owner from root to another  local user.
>
> it is also suspicous, that when studying the ps output, that between each
> change of owner for a further child process, a period of 1 second seemed
> always be used.


Are you using NIS or LDAP on your system?  The only hang in this
neighborhood I've ever seen was when LDAP was used for groups and
getgroups() would take seconds.

-- 
Eric Covener
covener@gmail.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