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, 32000000, 64000000;

at the top of the script which should be limited. So only the Apache
child process of this script is limited.

> 
> Are you sure you're using the right units (bytes vs. megabytes)?  Could

Yes, "setrlimit" wants bytes, Apache::Resource wants MBytes.

> your server be immediately going higher than the limit you set for it?

Mmh, but what could be the reason? A normal httpd process has i.g. 8 MB
and i set the limit to 32 MB. If I run the test script without
"setrlimit" and watch it with top it slowly consumes the RAM appr. 1 MB
/ sec...


Anyway: I still don't know what the reason was for this problem -  but I
solved it with installing a brand new apache, perl & mod_perl - now it
works as it should! ;-)

Thanx for your help nonetheless!!


> 
> - Perrin


Best regards,

Christoph

Reply via email to