* Daniel P. Berrange (dan@xxxxxxxxxxxx) [040312 12:13]:
> On Fri, Mar 12, 2004 at 11:07:13AM +0000, Miah Gregory wrote:
> > Whilst the script seems to work ok, it does take a long time to run, but
> > the main problem is memory usage - with a big folder with, say, 5000
> > messages in it, the script exhausts the memory on the machine.
> I've had a problem with memory usage too - I reduced memory consumption by
> calling $message->destruct after finishing dealing with each message - but
> I still can't process all 500MB of mail archives in one go without
> restarting my script.
It would be nice to know why destruct() doesn't help. Might be a
simple case of some final reference to be cleaned-up. At the same
time, it may as well be cause by Perl trashing memory or other
memory leaks. Various versions of Perl have memory leaks.
--
MarkOv
------------------------------------------------------------------------
drs Mark A.C.J. Overmeer MARKOV Solutions
Mark@xxxxxxxxxxxx solutions@xxxxxxxxxxxx
http://Mark.Overmeer.net http://solutions.overmeer.net
|