child recycling

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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
snmp apache [ Mo, 27 September 2010 23:09 ] [ ID #2048491 ]

Re: child recycling

On Mon, Sep 27, 2010 at 5:09 PM, Brad Lira <snmp.apache [at] gmail.com> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Eric Covener [ Mo, 27 September 2010 23:31 ] [ ID #2048492 ]

Re: child recycling

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 <covener [at] gmail.com> wrote:
> On Mon, Sep 27, 2010 at 5:09 PM, Brad Lira <snmp.apache [at] gmail.com> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe [at] httpd.apache.org
> For additional commands, e-mail: users-help [at] httpd.apache.org
>
>

------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
snmp apache [ Di, 28 September 2010 16:01 ] [ ID #2048498 ]
Webserver » gmane.comp.apache.user » child recycling

Vorheriges Thema: Memory Leak in Apache 2.2.14 on Windows Server
Nächstes Thema: apache 2.2.16 and directory