[IMC-Tech] Apache RLimitCPU directive
Arun Bhalla
arun at shme.net
Wed Jan 18 14:17:03 CST 2006
Maybe the Apache child handles SIGXCPU more gracefully than SIGKILL,
but point taken.
Arun
"Zachary C. Miller" writes:
> If I recall correctly, simply killing off (with kill -9) the rogue
> children, in our particular case, leaves them as zombies. That's why
> we routinely kill off all the apache processes and start from scratch.
>
> Arun Bhalla wrote:
> > That's right.
> >
> > However, it gave me an idea. We could use process resource limits.
> > Child processes inherit resource limits from their parent processes.
> > So if we set the maximum CPU time to something reasonable (1 minute?)
> > in the shell that launches Apache, then Apache and all of its child
> > processes (including Apache children) are limited to 1 minute of CPU time
> > and then die. The unfortunate side effect is that the Apache parent
> > would eventually die, too, but hopefully the parent is doing far less
> > work than its children.
> >
> > This is still a hack and not solving the original problem, but it should
> > kill off runaway processes as they occur without having to restart
> > Apache.
> >
> > Arun
> >
> > "Zachary C. Miller" writes:
> > > It won't work. We don't have run away CGI scripts, we have run away
> > > apache children.
> > >
> > > "This applies to processes forked off from Apache children servicing
> > > requests, not the Apache children themselves. This includes CGI
> > > scripts and SSI exec commands, but not any processes forked off from
> > > the Apache parent such as piped logs."
> > >
> > > Daniel Lewart wrote:
> > > > Zach, et al,
> > > >
> > > > Has anyone tried using the Apache RLimitCPU directive?:
> > > > http://httpd.apache.org/docs/1.3/mod/core.html#rlimitcpu
> > > >
> > > > Cheers,
> > > > Dan
> > > > _______________________________________________
> > > > IMC-Tech mailing list
> > > > IMC-Tech at lists.ucimc.org
> > > > http://lists.chambana.net/cgi-bin/listinfo/imc-tech
> > > >
> > >
> > > --
> > > Zachary C. Miller - @= - http://zach.chambana.net/
> > > IMSA 1995 - UIUC 2000 - Just Another Leftist Muppet - Ya Basta!
> > > Social Justice, Community, Nonviolence, Decentralization, Feminism,
> > > Sustainability, Responsibility, Diversity, Democracy, Ecology
> > > _______________________________________________
> > > IMC-Tech mailing list
> > > IMC-Tech at lists.ucimc.org
> > > http://lists.chambana.net/cgi-bin/listinfo/imc-tech
> > >
> >
>
> --
> Zachary C. Miller - @= - http://zach.chambana.net/
> IMSA 1995 - UIUC 2000 - Just Another Leftist Muppet - Ya Basta!
> Social Justice, Community, Nonviolence, Decentralization, Feminism,
> Sustainability, Responsibility, Diversity, Democracy, Ecology
>
More information about the IMC-Tech
mailing list