in reply to Re^2: Total Memory Size Used up by a Perl Script
in thread Total Memory Size Used up by a Perl Script

As you said yourself, Devel::Size only gives you the size of a single data structure, whereas Proc::ProcessTable gives you the size of the whole running process, including perl interpreter, loaded modules etc.

That being said, 5MB seems kinda big for what you're doing here. Try EvanCarrol's suggestion as well to confirm the result, it should give you the same as Proc::ProcessTable (search.cpan.org seems to be having some problems atm, so I can't download the modules myself to check.)

  • Comment on Re^3: Total Memory Size Used up by a Perl Script