You could monitor these before creating new objects and check if your script is using more than a "sane" amount and quit if the threshold is reached.use Gtop; my $gtop = GTop->new(); my $mem = $gtop->proc_mem($$); # Now you can use $mem->share / $mem->rss / $mem->vsize
In reply to Re: Prevent "Out of Memory" error
by edeca
in thread Prevent "Out of Memory" error
by tford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |