Re: Apache::Resource on Linux

2000-05-23 Thread Doug MacEachern

On Mon, 22 May 2000, Ian Kallen wrote:

> 
> BSD::Resource passed all of the make test tests but when I tried enabling
> Apache::Resource on a rh6.1 installation the error log barfed with these:
> 
> Ouch!  malloc failed in malloc_block()

on problem is that the values were not coverted to MB, patch below fixes
that.  this error is correct when the limit has been reached and clearly
isn't graceful, you might want to use Apache::SizeLimit instead.

--- lib/Apache/Resource.pm  2000/03/23 04:48:56 1.9
+++ lib/Apache/Resource.pm  2000/05/23 18:41:44
@@ -26,7 +26,7 @@
 sub DEFAULT_RLIMIT_FSIZE () { 10 } #file size  (MB)
 sub DEFAULT_RLIMIT_STACK () { 20 } #stack size (MB)
 
-my %is_mb = map {$_,1} qw{DATA RSS STACK FSIZE CORE MEMLOCK};
+my %is_mb = map {$_,1} qw{DATA RSS STACK FSIZE CORE MEMLOCK AS};
 
 sub debug { print STDERR @_ if $Debug }
 





Apache::Resource on Linux

2000-05-22 Thread Ian Kallen


BSD::Resource passed all of the make test tests but when I tried enabling
Apache::Resource on a rh6.1 installation the error log barfed with these:

Ouch!  malloc failed in malloc_block()

using settings right out of the perldoc 

PerlModule Apache::Resource
PerlSetEnv PERL_RLIMIT_AS 32:48
PerlChildInitHandler Apache::Resource

Does this really not work on Linux??

--
Salon Internet  http://www.salon.com/
  Manager, Software and Systems "Livin' La Vida Unix!"
Ian Kallen <[EMAIL PROTECTED]> / AIM: iankallen / Fax: (415) 354-3326