You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sylvain Goulmy <sy...@gmail.com> on 2016/03/31 10:46:46 UTC

[users@httpd] MPM Worker : Two processes launched with no activity

Hi all,

I'm currently using apache 2.4.17 on RHEL with the worker mode configured
this way :

- ThreadLimit : 200
- ServerLimit : 50
- ThreadsPerChild : 50
- MaxRequestWorkers : 150
- MinSpareThreads : 10
- MaxSpareThreads : 80
- MaxConnectionsPerChild : 0
- StartServers : 1

With this configuration and whereas i don't have any activity on my http
instance, i can't see on the status page that there are two processes that
are launched systematically.

This behaviour is different from the one i had with apache 2.2 where i had
only one process running when there wasn't any activity.

What could explain this behaviour ?

Thanks in advance for your support.
Sylvain

Re: [users@httpd] MPM Worker : Two processes launched with no activity

Posted by Daniel <df...@gmail.com>.
Forgot to mention the two processes correspond to maxsparethreads value,
80, and 50 threads per child that makes two processes

El jue., 31 de mar. de 2016 22:13, Daniel <df...@gmail.com> escribió:

> The setup is quite contradictory.
>
> One one hand you have serverlimit 50, which refers to child processes, and
> threads per child 50, which would total for 2500 threads, on the other hand
> you have specified a total of 150 maxrequestworkers which refer to the
> maximum permitted amount of threads and that will allow only to spawn a max
> of three child processes ,fix that first I'd say.
>
> El jue., 31 de mar. de 2016 13:13, Sylvain Goulmy <sy...@gmail.com>
> escribió:
>
>> Hi Yann,
>>
>> Two children processes.
>>
>> And on the status page i can see :
>>
>> 1 requests currently being processed, 99 idle workers
>>
>>
>> Regards.
>> Sylvain
>>
>> On Thu, Mar 31, 2016 at 12:01 PM, Yann Ylavic <yl...@gmail.com>
>> wrote:
>>
>>> On Thu, Mar 31, 2016 at 10:46 AM, Sylvain Goulmy <sy...@gmail.com>
>>> wrote:
>>> >
>>> > I'm currently using apache 2.4.17 on RHEL with the worker mode
>>> configured
>>> > this way :
>>> >
>>> > - ThreadLimit : 200
>>> > - ServerLimit : 50
>>> > - ThreadsPerChild : 50
>>> > - MaxRequestWorkers : 150
>>> > - MinSpareThreads : 10
>>> > - MaxSpareThreads : 80
>>> > - MaxConnectionsPerChild : 0
>>> > - StartServers : 1
>>> >
>>> > With this configuration and whereas i don't have any activity on my
>>> http
>>> > instance, i can't see on the status page that there are two processes
>>> that
>>> > are launched systematically.
>>>
>>> Two children processes or two including the parent (root) process ?
>>>
>>> Regards,
>>> Yann.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>

Re: [users@httpd] MPM Worker : Two processes launched with no activity

Posted by Daniel <df...@gmail.com>.
The setup is quite contradictory.

One one hand you have serverlimit 50, which refers to child processes, and
threads per child 50, which would total for 2500 threads, on the other hand
you have specified a total of 150 maxrequestworkers which refer to the
maximum permitted amount of threads and that will allow only to spawn a max
of three child processes ,fix that first I'd say.

El jue., 31 de mar. de 2016 13:13, Sylvain Goulmy <sy...@gmail.com>
escribió:

> Hi Yann,
>
> Two children processes.
>
> And on the status page i can see :
>
> 1 requests currently being processed, 99 idle workers
>
>
> Regards.
> Sylvain
>
> On Thu, Mar 31, 2016 at 12:01 PM, Yann Ylavic <yl...@gmail.com>
> wrote:
>
>> On Thu, Mar 31, 2016 at 10:46 AM, Sylvain Goulmy <sy...@gmail.com>
>> wrote:
>> >
>> > I'm currently using apache 2.4.17 on RHEL with the worker mode
>> configured
>> > this way :
>> >
>> > - ThreadLimit : 200
>> > - ServerLimit : 50
>> > - ThreadsPerChild : 50
>> > - MaxRequestWorkers : 150
>> > - MinSpareThreads : 10
>> > - MaxSpareThreads : 80
>> > - MaxConnectionsPerChild : 0
>> > - StartServers : 1
>> >
>> > With this configuration and whereas i don't have any activity on my http
>> > instance, i can't see on the status page that there are two processes
>> that
>> > are launched systematically.
>>
>> Two children processes or two including the parent (root) process ?
>>
>> Regards,
>> Yann.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

Re: [users@httpd] MPM Worker : Two processes launched with no activity

Posted by Yann Ylavic <yl...@gmail.com>.
On Fri, Apr 1, 2016 at 6:52 PM, Sylvain Goulmy <sy...@gmail.com> wrote:
> Thanks for your analysis Yann, i'll stay tuned on the dev mailing list.

I committed [1], will wait a bit for others to review it and then
propose a backport.

Regards,
Yann.

[1] http://svn.apache.org/r1737447

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] MPM Worker : Two processes launched with no activity

Posted by Sylvain Goulmy <sy...@gmail.com>.
Thanks for your analysis Yann, i'll stay tuned on the dev mailing list.

See you.

On Fri, Apr 1, 2016 at 1:55 PM, Yann Ylavic <yl...@gmail.com> wrote:

> On Fri, Apr 1, 2016 at 9:57 AM, Sylvain Goulmy <sy...@gmail.com> wrote:
> >
> > No i don't use that directive, here is the extract of the running
> > configuration :
>
> OK, actually this is caused by the introduction of Listeners Buckets
> (SO_REUSEPORT handling), precisely in 2.4.17.
>
> Before we used to require MinSpareThreads >= 1, now it is rounded up
> to ThreadsPerChild x num_buckets (with num_buckets being 1 in your
> case, no ListenCoresBucketsRatio).
>
> I don't think this is correct, so I'll ask on the dev@ mailing list
> and keep you informed (if you are not subscribed).
>
> Thanks for the report,
> Yann.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] MPM Worker : Two processes launched with no activity

Posted by Yann Ylavic <yl...@gmail.com>.
On Fri, Apr 1, 2016 at 9:57 AM, Sylvain Goulmy <sy...@gmail.com> wrote:
>
> No i don't use that directive, here is the extract of the running
> configuration :

OK, actually this is caused by the introduction of Listeners Buckets
(SO_REUSEPORT handling), precisely in 2.4.17.

Before we used to require MinSpareThreads >= 1, now it is rounded up
to ThreadsPerChild x num_buckets (with num_buckets being 1 in your
case, no ListenCoresBucketsRatio).

I don't think this is correct, so I'll ask on the dev@ mailing list
and keep you informed (if you are not subscribed).

Thanks for the report,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] MPM Worker : Two processes launched with no activity

Posted by Sylvain Goulmy <sy...@gmail.com>.
Hi Yann,

No i don't use that directive, here is the extract of the running
configuration :

*Current Configuration:**In file: /tech/apache/etc/server/common-2.4.conf*
  13: Listen *127.60.2.30:80 <http://127.60.2.30:80>*  14: Listen
*127.60.2.30:443
<http://127.60.2.30:443>*  86: ThreadLimit *200*  87: ServerLimit *50*
  88: ThreadsPerChild *50*  89: MaxRequestWorkers *150*
  90: MinSpareThreads *10*  91: MaxSpareThreads *80*  93: StartServers *1*
 107: GracefulShutDownTimeout *60*

Regards
Sylvain

On Thu, Mar 31, 2016 at 11:44 PM, Yann Ylavic <yl...@gmail.com> wrote:

> On Thu, Mar 31, 2016 at 1:12 PM, Sylvain Goulmy <sy...@gmail.com>
> wrote:
> > Hi Yann,
> >
> > Two children processes.
>
> Did you configure ListenCoresBucketsRatio?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] MPM Worker : Two processes launched with no activity

Posted by Yann Ylavic <yl...@gmail.com>.
On Thu, Mar 31, 2016 at 1:12 PM, Sylvain Goulmy <sy...@gmail.com> wrote:
> Hi Yann,
>
> Two children processes.

Did you configure ListenCoresBucketsRatio?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] MPM Worker : Two processes launched with no activity

Posted by Sylvain Goulmy <sy...@gmail.com>.
Hi Yann,

Two children processes.

And on the status page i can see :

1 requests currently being processed, 99 idle workers


Regards.
Sylvain

On Thu, Mar 31, 2016 at 12:01 PM, Yann Ylavic <yl...@gmail.com> wrote:

> On Thu, Mar 31, 2016 at 10:46 AM, Sylvain Goulmy <sy...@gmail.com>
> wrote:
> >
> > I'm currently using apache 2.4.17 on RHEL with the worker mode configured
> > this way :
> >
> > - ThreadLimit : 200
> > - ServerLimit : 50
> > - ThreadsPerChild : 50
> > - MaxRequestWorkers : 150
> > - MinSpareThreads : 10
> > - MaxSpareThreads : 80
> > - MaxConnectionsPerChild : 0
> > - StartServers : 1
> >
> > With this configuration and whereas i don't have any activity on my http
> > instance, i can't see on the status page that there are two processes
> that
> > are launched systematically.
>
> Two children processes or two including the parent (root) process ?
>
> Regards,
> Yann.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] MPM Worker : Two processes launched with no activity

Posted by Yann Ylavic <yl...@gmail.com>.
On Thu, Mar 31, 2016 at 10:46 AM, Sylvain Goulmy <sy...@gmail.com> wrote:
>
> I'm currently using apache 2.4.17 on RHEL with the worker mode configured
> this way :
>
> - ThreadLimit : 200
> - ServerLimit : 50
> - ThreadsPerChild : 50
> - MaxRequestWorkers : 150
> - MinSpareThreads : 10
> - MaxSpareThreads : 80
> - MaxConnectionsPerChild : 0
> - StartServers : 1
>
> With this configuration and whereas i don't have any activity on my http
> instance, i can't see on the status page that there are two processes that
> are launched systematically.

Two children processes or two including the parent (root) process ?

Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org