[Imc-web] Re: [IMC-Tech] Apache RLimitCPU directive

Arun Bhalla arun at shme.net
Wed Jan 18 13:29:22 CST 2006


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
> 



More information about the IMC-Web mailing list