Re: BSD::Resource und apache/mod_perl

2002-01-10 Thread Christoph Bergmann
Perrin Harkins wrote: > > The difference is that Apache::Resource should apply this limit to each > new child process. When you do this from the shell, you are limiting > the parent Apache process, which isn't very useful. I put use BSD::Resource; setrlimit RLIMIT_AS, 3200, 6400; at t

Re: BSD::Resource und apache/mod_perl

2002-01-09 Thread Christoph Bergmann
RLIMIT_AS, 3200, 6400; at top of the test script. I use "setrlimit" directly so I could test if BSD::Resource works at all - and it DOES if run from the shell - but it does NOT if run from Apache/mod_perl. What could cause the different behaviour?? Best regards, Christoph Bergman

BSD::Resource und apache/mod_perl

2002-01-09 Thread Christoph Bergmann
via browser from apache/mod_perl. (it has nothing to do with "forecasting": if the loop iterations are set lower (i.g. to 1) the script should give "test...ok" but it stops immediately with "out of memory" as well) has anybody any ideas? thanx in advance, best regards, christoph bergmann

How to use LWP::Simple inside a safe compartment?

2001-12-19 Thread Christoph Bergmann
hy I use "wget" instead of "get" directly because I have already a subroutine with the name "get" elsewhere) I tried some other things but they all didn't work. Does anybody know how to use LWP::Simple::get inside a save compartment? Thanks in advance, Best regards,

How to use LWP::Simple inside a safe compartment?

2001-12-12 Thread Christoph Bergmann
hy I use "wget" instead of "get" directly because I have already a subroutine with the name "get" elsewhere) I tried some other things but they all didn't work. Does anybody know how to use LWP::Simple::get inside a save compartment? Thanks in advance, Best regards,

Re: predefined arrays @- and @+ with mod_perl?

2001-10-10 Thread Christoph Bergmann
Ilya Martynov wrote: > > >>>>> On Wed, 10 Oct 2001 20:17:19 +0200, Christoph Bergmann <[EMAIL PROTECTED]> >said: > > CB> Hi... > CB> I wonder if there exists the predefined arrays @- and @+ in mod_perl. > > See 'perldoc perlvar'

predefined arrays @- and @+ with mod_perl?

2001-10-10 Thread Christoph Bergmann
he shell it prints out nothing (except "") - as expected. I use apache 1.3.20, perl 5.6.1 and mod_perl 1.26. I've never read about such predefined Arrays - what do they contain and why are they global? Thanks in advance! Best regards, Christoph Bergmann

Re: how to catch a killed task?

2001-10-09 Thread Christoph Bergmann
imit catches normal growth, > and BSD::Resource catches emergencies. You set the limit for BSD::Resource > higher than the one for SizeLimit. > - Perrin Oops, sorry, I overlooked that. Yes that makes sense... Best regards, Christoph Bergmann

Re: how to catch a killed task?

2001-10-09 Thread Christoph Bergmann
Stas Bekman wrote: > > Christoph Bergmann wrote: > > > hi... > > > > i use BSD::Resource to limit the ressources of the apache tasks. this > > works fine but now i want to clean up afterwards but i don't know how to > > catch a kill

Re: how to catch a killed task?

2001-10-09 Thread Christoph Bergmann
onsume memory as they want - Apache::SizeLimit is not harsh enough for this ;-) Best regards, Christoph Bergmann

how to catch a killed task?

2001-10-06 Thread Christoph Bergmann
hen a program is finished, if so, how can i check if the program has ended as it shoulds or if it was killed by BSD::resource ? thanx in advance! best regards, christoph bergmann

"Callback called exit." x 100000

2001-09-11 Thread Christoph Bergmann
with mod_perl, but I guess so, because of the "Attempt to free unreferenced scalar during global destruction." lines before... Does anybody know what happens here and what to do? Thanx in advance! Best regards, Christoph Bergmann