Re: Memory leak in LWP is not cured with perl's malloc()

jack velte (jackv@earthling.net)
Wed, 21 Jul 1999 01:24:28 -0400


buy some ram.  64M PC-100 is like $60.  should be enough for the fattest
script.

you're worried about 3M of ram?  i bought 128M to 'fix' my bloated cloning
scripts and now only the OS talks to the disk.

-jack


----- Original Message -----
From: Marc Langheinrich <marclang@cs.washington.edu>
To: LWP Mailing List <libwww-perl@ics.uci.edu>
Cc: Ilya Ketris <ilya@gde.to>
Sent: Wednesday, July 21, 1999 12:41 AM
Subject: Re: Memory leak in LWP is not cured with perl's malloc()


> On Wed, Jul 21, 1999 at 02:41:24AM +0300, Ilya Ketris wrote:
> > This program grows in size.  If you substitute
> > 'http://www' with 'www', making it invalid URI, or with
> > 'http://nosuchhost', making it not to resolve, it does
> > NOT grow.  'ftp://ftphost' grows as well.
> The above program works fine (i.e. without leaks) for me (constant use of
> about 2.0% after 2:00 minutes):
>
>   PID USER     PRI  SIZE  RSS SHARE STAT  %CPU %MEM   TIME COMMAND
>  9872 marc      10  3280 3280  1020 R     68.3  2.0   2:27 perl test.pl
>
> For what it's worth:
>
> Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
>   Platform:
>     osname=linux, osvers=2.0.34, archname=i686-linux
>     uname='linux saxifrage.cs.washington.edu 2.0.34 #7 mon jul 6 18:26:36
pdt 1998 i686 unknown '
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef useperlio=undef d_sfio=undef
>   Compiler:
>     cc='cc', optimize='-O2', gccversion=2.7.2.3
>     cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
>     ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
>     stdchar='char', d_stdstdio=define, usevfork=false
>     intsize=4, longsize=4, ptrsize=4, doublesize=8
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
>     alignbytes=4, usemymalloc=n, prototype=define
>   Linker and Libraries:
>     ld='cc', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib /usr/lib
>     libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
>     libc=, so=so, useshrplib=false, libperl=libperl.a
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
>     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
>
> --
> Marc Langheinrich
> marclang@cs.washington.edu
>
>