You could have a look at the Devel:: namespace on CPAN for all the memory related debugging modules. If you want to find out what modules are loaded into memory by a perl script, for example, you could use Devel::TraceLoad as below:
H:\Perl>perl -MDevel::TraceLoad p10.pl +strict.pm [from: p10.pl 1] +warnings.pm [from: p10.pl 2] +Data/Dumper.pm [from: p10.pl 3] +XSLoader.pm [from: C:/Perl/lib/Data/Dumper.pm 18] +Carp.pm [from: C:/Perl/lib/Data/Dumper.pm 21] +bytes.pm [from: C:/Perl/lib/Data/Dumper.pm 613] +Exporter.pm [from: C:/Perl/lib/Data/Dumper.pm 17] +overload.pm [from: C:/Perl/lib/Data/Dumper.pm 19] +warnings/register.pm [from: C:/Perl/lib/overload.pm 135]
Also installing more RAM and fine tune your Windows system will definitely help to reduce VM usage. There are plenty of operating system memory optimization tools for Windows available, like XP tweak, magic rabit, windows optimizer, etc.


In reply to Re: about understanding module memory by Roger
in thread about understanding module memory by smackdab

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.