You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Stefan Cars <st...@snowfall.se> on 2004/05/28 11:36:34 UTC

Not letting loops etc crash the server (mp2)

Hi!

I'm interested in not letting coding mistakes crash the server, or at
least not eat all the RAM and CPU.  Perry answered this
(http://marc.theaimsgroup.com/?l=apache-modperl&m=100162037703860&w=2) but
that is for use with mp1, what could you do with mp2?

Kind Regards,
Stefan Cars

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Not letting loops etc crash the server (mp2)

Posted by Perrin Harkins <pe...@elem.com>.
On Fri, 2004-05-28 at 14:02, Stas Bekman wrote:
> Assuming that you are using prefork mpm, all the answers Perrin gave apply to 
> mp2. But those tools need to be ported. I remember Perrin was planning to port 
> Apache::SizeLimit, I'm not sure if he did.

Not yet, but as you say, it's pretty quick to port both of these for
prefork MPM.  Basically, they just need to have the Apache::Constants
stuff and the names of the apache phases adjusted.

- Perrin


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Not letting loops etc crash the server (mp2)

Posted by Stas Bekman <st...@stason.org>.
Stefan Cars wrote:
> Hi!
> 
> I'm interested in not letting coding mistakes crash the server, or at
> least not eat all the RAM and CPU.  Perry answered this
> (http://marc.theaimsgroup.com/?l=apache-modperl&m=100162037703860&w=2) but
> that is for use with mp1, what could you do with mp2?

Assuming that you are using prefork mpm, all the answers Perrin gave apply to 
mp2. But those tools need to be ported. I remember Perrin was planning to port 
Apache::SizeLimit, I'm not sure if he did.

Same goes for Apache::Resource -- it needs to be ported, which should be very 
easy, since it mainly just uses BSD::Resource and there is a plugin for 
Apache::Status.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html