http://qs321.pair.com?node_id=243221


in reply to Memory usage and perl

A really cheesy way of limiting the damage would be (if your algorithm allows you to do that, of course):

By doing so you limit the maximum memory usage of one invocation of your script.
Of course this only works if your algorithm/task at hand allows this kind of dividing the work.

This has been working pretty well for me. Of course, then you can always distribute the work over a load of machines, if you feel the urge. ;-)

janx