[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Memory problems in OO context



At 01.20 -0600 1999.12.06, Matthew Langford wrote:
>Regarding what has been noticed, I seem to recall that CPAN has large
>memory requests in part because memory was leaking somewhere.  Again, this
>may be the script or it may be MacPerl, except I believe CPAN on other
>systems doesn't use anywhere near the same amount of memory.

  s/CPAN/CPAN.pm/g

No, CPAN.pm takes about as much memory on other systems, too, under the
right conditions.  There may be a leak, but CPAN.pm takes a ton of memory.

Using perl5.005_03 on Red Hat 6.0, perl -MCPAN -e shell takes up 11MB
before installing anything (after reading in the indexes).  And MacPerl has
more overhead just to run, I think (though I am not sure), and it certainly
has more overhead in that it needs to use Compress::Zlib and Archive::Tar.

So I did a test under the same Linux box, forcing it to use Compress::Zlib
and Archive::Tar instead of /bin/gzip and /bin/tar.  After force installing
Bundle::libnet and Bundle::LWP, memory use went up to 21MB and stayed
there.  Doing it again without quitting the CPAN shell, and memory use
jumps to 31MB and stays there.  This is similar to what happens under
MacPerl.  So I'd say there may be a leak, but it is with Archive::Tar or
Compress::Zlib (or both), not with CPAN.pm, and not with MacPerl.

-- 
Chris Nandor                                   mailto:chrisn@petersons.com
Peterson's, a Thomson Learning Company           http://www.petersons.com/


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org