in reply to How would you use perl debugging tools to pinpoint the problem here?

With a bit of proactive work you don't have to worry about crashing your computer.
use BSD::Resource; my $limit = 100*1024*1024; # 100 MB setrlimit(RLIMIT_AS, $limit, $limit);
If you're using Apache, you can do this by making sure that the setrlimit utility is in your PATH, and setting the environment variable APACHE_ADDRESS_SPACE_MB to whatever you want before starting Apache.

This doesn't stop you from having to debug the problem, but this makes the bug be less of a development problem for you.

  • Comment on Re: How would you use perl debugging tools to pinpoint the problem here?
  • Download Code

Replies are listed 'Best First'.
Re^2: How would you use perl debugging tools to pinpoint the problem here?
by blazar (Canon) on Nov 10, 2005 at 16:38 UTC
    my $limit = 100*1024*1024; # 100 MB
    Also,
    my $limit = 100<<20; # 100 MB
    which I find to be better readable, but as usual YMMV.