Re: Killing oversized Perl processes

2010-03-15 Thread Arthur Goldberg
Thanks Perrin Unfortunately, this doesn't work. First, failure of a mod_perl process with "Out of Memory!", as occurs when the softlimit of RLIMIT_AS is exceeded, does not trigger an Apache ErrorDocument 500. A mod_perl process that exits (actually CORE::exit() must be called), that doesn't tri

Re: Killing oversized Perl processes

2010-03-15 Thread Perrin Harkins
On Sun, Mar 14, 2010 at 11:22 AM, Arthur Goldberg wrote: > Perhaps you're referring to Apache's ErrorDocument (also described in Custom > Error Response). Yes, that's what I meant. > While that can run local Perl (in a new process of course) > as in the example >        ErrorDocument 500 /cgi-bi

Re: Killing oversized Perl processes

2010-03-14 Thread Arthur Goldberg
Hi Perrin Thanks all for your responses. I'd like to try your suggestion, but cannot find documentation on "apache error page handlers". Presumably that's code that Apache runs if an httpd dies. mod_perl: HTTP /Handlers

Re: Killing oversized Perl processes

2010-03-12 Thread Rolf Schaufelberger
Am 11.03.2010 um 22:41 schrieb ARTHUR GOLDBERG: > Running Perl programs in mod_perl in Apache (2.2) on RHEL: > >> [10 a...@virtualplant:/etc]$ cat /etc/redhat-release >> Red Hat Enterprise Linux Server release 5.4 (Tikanga) >> [11 a...@virtualplant:/etc]$ uname -r >> 2.6.18-164.11.1.el5 > Occasi

Fwd: Killing oversized Perl processes

2010-03-12 Thread William T
On Thu, Mar 11, 2010 at 1:41 PM, ARTHUR GOLDBERG wrote: > > OK, that kills big processes. What happens next is that Perl runs out of > memory (outputs "Out of Memory!") and calls the __DIE__ signal handler. So, > my plan is to catch the signal, redirect the browser to an error page, and > finally

Re: Killing oversized Perl processes

2010-03-11 Thread Perrin Harkins
On Thu, Mar 11, 2010 at 4:41 PM, ARTHUR GOLDBERG wrote: > 2) Kill apache httpd processes occasionally, to control the effect of slow > perl memory leaks. I'll do this by setting MPM Worker MaxRequestsPerChild to > some modest value. (I'll try 100.) You definitely should be doing that, and possibl

Killing oversized Perl processes

2010-03-11 Thread ARTHUR GOLDBERG
Running Perl programs in mod_perl in Apache (2.2) on RHEL: [10 a...@virtualplant:/etc]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.4 (Tikanga) [11 a...@virtualplant:/etc]$ uname -r 2.6.18-164.11.1.el5 Occasionally a process grows so large that it freezes the system: se