in reply to Out Of Memory or Memory fault(coredump) errors, is there a way out?
It may not even be a Perl issue, in that the id it's running under (you've not mentioned the O/S being used…) is preventing Perl from allocating memory it needs. If this is the case, it may be a way around the "out of memory" error you're getting from the Perl program, but it is most emphatically not risk free.
One suggestion: use Tie. This should minimize (but not eliminate) required program changes, and reduce the possibility of running out of memory by keeping the hash on disk. You could also use the deprecated dbmopen, but it's deprecated for a reason, and I would advise against introducing it into code.
emc
At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.
—Igor Sikorsky, reported in AOPA Pilot magazine February 2003.
|
|---|