You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Brad Lira <sn...@gmail.com> on 2010/09/27 23:09:50 UTC

[users@httpd] 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@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] child recycling

Posted by Brad Lira <sn...@gmail.com>.
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 <co...@gmail.com> wrote:
> On Mon, Sep 27, 2010 at 5:09 PM, Brad Lira <sn...@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  and child recycling.
>
> 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.  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@httpd.apache.org
>   "   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 <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] child recycling

Posted by Eric Covener <co...@gmail.com>.
On Mon, Sep 27, 2010 at 5:09 PM, Brad Lira <sn...@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  and child recycling.

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.  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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org