child recycling

child recycling

am 27.09.2010 23:09:50 von snmp apache

hello,

when the MaxRequestsPerChild has reached, and the child is killed,
does the is_graceful variable set in worker.c?

If so, how can differentiate between ./apachectl graceful and child recycling.

I want to reset some counters if the entire apache was restarted, but
not if the child is recycled.

appreciate your help.
thanks,
brad.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: child recycling

am 27.09.2010 23:31:58 von Eric Covener

On Mon, Sep 27, 2010 at 5:09 PM, Brad Lira wrote:
> hello,
>
> when the MaxRequestsPerChild has reached, and the child is killed,
> does the is_graceful variable set in worker.c?

It doesn't appear so

> If so, how can differentiate between ./apachectl graceful =A0and child re=
cycling.

I think you can just set a cleanup on pconf and you'll see it run in the pa=
rent.

> I want to reset some counters if the entire apache was restarted, but
> not if the child is recycled.

You could just clear them in post_config if they live in the parent
process. Otherwise, you're getting new children anyway.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: child recycling

am 28.09.2010 16:01:54 von snmp apache

i am setting some variable in scoreboard that are global to all
processes, so i wouldn't want
recycling of one child process to reset those counters.
I did more testing and it seems that it doesn't but wanted to get a
second opinion.
thanks for you response.

On Mon, Sep 27, 2010 at 5:31 PM, Eric Covener wrote:
> On Mon, Sep 27, 2010 at 5:09 PM, Brad Lira wrote:
>> hello,
>>
>> when the MaxRequestsPerChild has reached, and the child is killed,
>> does the is_graceful variable set in worker.c?
>
> It doesn't appear so
>
>> If so, how can differentiate between ./apachectl graceful =A0and child r=
ecycling.
>
> I think you can just set a cleanup on pconf and you'll see it run in the =
parent.
>
>> I want to reset some counters if the entire apache was restarted, but
>> not if the child is recycled.
>
> You could just clear them in post_config if they live in the parent
> process. =A0Otherwise, you're getting new children anyway.
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 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 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