httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [users@httpd] Exiting process doesn't trigger ErrorDocument 500
Date Tue, 23 Mar 2010 18:00:01 GMT
I set rlimit AS to protect against 'runaway' processes that allocate  
too much VM so Perl dies with "Out of Memory".
The __DIE__ handler is called, but it cannot write to STDOUT (which is  
connected to the TCP connection to the client) because STDOUT has been  
is there something else I have the handler do so that Apache httpd  
sees a 500?


On Mar 22, 2010, at 4:21 PM, Eric Covener wrote:

> On Mon, Mar 22, 2010 at 12:50 PM, ARTHUR GOLDBERG <>  
> wrote:
>> Is there a way to get a mod_perl process that dies with "out of  
>> memory"
>> trapped by the "ErrorDocument 500" handler?
> If it crashes, it's too late.  If it's actually perl pre-empting the
> crash, then it ought to work.  The key is whether you get a 500 or a
> crash OOTB, which is unclear.
> -- 
> Eric Covener

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message