hi... I use BSD::Resource to limit the RAM a mod_perl process could get. this works perfectly right on one machine but on another the process does not get any RAM at all and is killed immediately. both servers run under linux and therefor I use RLIMIT_AS as described in the "mod_perl guide" from stas bekman: http://thingy.kcilink.com/modperlguide/performance/OS_Specific_notes.html
The following test script works as it should if it runs from the shell (means: it runs a while, then it stops with "Out of memory error!"): #!/usr/bin/perl print "Content-type: text/html\n\ntest..."; use BSD::Resource; setrlimit RLIMIT_AS, 32000000, 64000000; for($i=0; $i<6000000; $i++) { $a.="dsafadsfadsfadfhakdhfkjaf"; } print "ok"; but it stops IMMEDIATELY with "out of memory"/"document contains no data" if called 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