Parallel::RobotUA Memory Leak

=?iso-8859-1?Q?Marc-Andr=E9_Dumas?= (madumas@excite.com)
Fri, 16 Jun 2000 14:00:07 -0700 (PDT)


Hi!=20

I have a problem with Parallel::RobotUA. The following code leaks. At each
iteration, it grows of about 12k (the size of the file is ~14k) at each
iteration.=20

But if I change Parallel::RobotUA for Parallel:UserAgent, it's=20
ok, except for a few kilobytes every 4-7 iterations. Anybody have an idea
why?=20

Thanks for you help!

Marc-Andr=E9 Dumas
madumas@x-recherche.com

--------=20
#!/usr/bin/perl -w=20
use strict;=20
use LWP::Parallel::UserAgent;=20
use LWP::Parallel::RobotUA;=20
#use LWP::Debug '+';=20

while(1)=20
{=20
       &down();=20
       system("ps -vx | egrep 'perl|MEM'");=20
}=20

sub down(){=20
               my $pua =3D new LWP::Parallel::RobotUA=20
("XR/2.1", 'madumas@x-recherche.com');=20
               $pua->timeout   (25);  # in seconds=20
               #$pua->delay    (1);  # in seconds=20
               $pua->max_req  (2);  # max parallel requests per=20
server=20
               $pua->max_hosts (30);  # max parallel servers accessed=20
               $pua->redirect  (0);=20
               $pua->max_size(150000);=20

               $pua->register=20
(HTTP::Request->new('GET',"http://www.yahoo.ca"));=20
               my $entries=3D$pua->wait();=20
}=20

-----=20

Here is my configuration:=20

$perl -V=20
Summary of my perl5 (revision 5.0 version 6 subversion 0)=20
configuration:=20
 Platform:=20
   osname=3Dlinux, osvers=3D2.2.14-12, archname=3Di686-linux=20
   uname=3D'linux www.x-recherche.com 2.2.14-12 #1 tue apr 25 13:04:07=20
edt 2000 i686 unknown '=20
   config_args=3D'-de'=20
   hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine=20
   usethreads=3Dundef use5005threads=3Dundef useithreads=3Dundef=20
usemultiplicity=3Dundef=20
   useperlio=3Dundef d_sfio=3Dundef uselargefiles=3Ddefine=20
   use64bitint=3Dundef use64bitall=3Dundef uselongdouble=3Dundef=20
usesocks=3Dundef=20
 Compiler:=20
   cc=3D'cc', optimize=3D'-O2', gccversion=3Degcs-2.91.66 19990314/Linux=20
(egcs-1.1.2 release)=20
   cppflags=3D'-fno-strict-aliasing -I/usr/local/include'=20
   ccflags =3D'-fno-strict-aliasing -I/usr/local/include=20
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64'=20
   stdchar=3D'char', d_stdstdio=3Ddefine, usevfork=3Dfalse=20
   intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8=20
   d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine,=20
longdblsize=3D12=20
   ivtype=3D'long', ivsize=3D4, nvtype=3D'double', nvsize=3D8, Off_t=3D'off=
_t',=20
lseeksize=3D8=20
   alignbytes=3D4, usemymalloc=3Dn, prototype=3Ddefine=20
 Linker and Libraries:=20
   ld=3D'cc', ldflags =3D' -L/usr/local/lib'=20
   libpth=3D/usr/local/lib /lib /usr/lib=20
   libs=3D-lnsl -lndbm -ldb -ldl -lm -lc -lposix -lcrypt=20
   libc=3D/lib/libc-2.1.1.so, so=3Dso, useshrplib=3Dfalse,=20
libperl=3Dlibperl.a=20
 Dynamic Linking:=20
   dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef,=20
ccdlflags=3D'-rdynamic'=20
   cccdlflags=3D'-fpic', lddlflags=3D'-shared -L/usr/local/lib'=20

Characteristics of this binary (from libperl):=20
 Compile-time options: USE_LARGE_FILES=20
 Built under linux=20
 Compiled at Jun 15 2000 16:14:21=20
 @INC:=20
   /usr/local/lib/perl5/5.6.0/i686-linux=20
   /usr/local/lib/perl5/5.6.0=20
   /usr/local/lib/perl5/site_perl/5.6.0/i686-linux=20
   /usr/local/lib/perl5/site_perl/5.6.0=20
   /usr/local/lib/perl5/site_perl=20





_______________________________________________________
Get 100% FREE Internet Access powered by Excite
Visit http://freelane.excite.com/freeisp