I have a long-running perl script which is used to process a 28Mb file.
This makes extensive use of objects and complex nested reference
datatypes, but other than that doesn't do anything too clever, eg no
evals etc. Unfortunately it leaks memory at a steady rate - it gets to
well over 30Mb before even getting half way through the file. It is
difficult/impossible for me to produce a simple version of the program.
I have instrumented the new and DESTROY methods of the appropriate
classes, and everything seems to match up.
Can anyone suggest any approaches I might take to track this down? Would
explicitly using undef() to tear down all the nested hashes & arrays that
I have created help?
Alan Burlison aburlison@cix.compulink.co.uk
This makes extensive use of objects and complex nested reference
datatypes, but other than that doesn't do anything too clever, eg no
evals etc. Unfortunately it leaks memory at a steady rate - it gets to
well over 30Mb before even getting half way through the file. It is
difficult/impossible for me to produce a simple version of the program.
I have instrumented the new and DESTROY methods of the appropriate
classes, and everything seems to match up.
Can anyone suggest any approaches I might take to track this down? Would
explicitly using undef() to tear down all the nested hashes & arrays that
I have created help?
Alan Burlison aburlison@cix.compulink.co.uk