Hello,
       Im experiencing a memory leak problem with my Net::LDAP. I upgraded
to the perl-ldap-0.29 bundle hoping it would stop it, but its still there.
:(
Can anybody see the problem in my script?

The script is at the end of the email.

When started I used top to see the memory used...

   PID USERNAME THR PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
 16112 root       1  41    0 5584K 5016K sleep    0:00  0.29% cut_down.pl

Then I hit Enter once to loop it 50000 times. and the memory SIZE used
increased to.... 10MB

   PID USERNAME THR PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
 16112 root       1   0    0   10M 9944K sleep    4:02  0.03% cut_down.pl


When I comment out the lines in the scrpt between my # Memory Leak comments,
I do not get the leak.

Im using Solaris 8, and have compiled Perl 5.8.0 and installed following
modules...
  perl-ldap-0.29.tar.gz   (version 28 was installed before, I installed 29
over the top.)
  Authen::SASL  -> Authen-SASL-2.04.tar.gz
  IO::Socket::SSL -> IO-Socket-SSL-0.92.tar.gz
       Net::SSLeay  -> Net_SSLeay.pm-1.23.tar.gz    -> needs OpenSSL-0.9.6.b
or newer.
  URI::ldap  -> URI-1.23.tar.gz
  Convert::ASN1  -> Convert-ASN1-0.17.tar.gz

I built perl using
sun4 # pkginfo -l SMCgcc
   PKGINST:  SMCgcc
      NAME:  gcc
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  3.2
   BASEDIR:  /usr/local
    VENDOR:  Free Software Foundation
    PSTAMP:  Steve Christensen
  INSTDATE:  Jun 16 2003 11:50
     EMAIL:  [EMAIL PROTECTED]
    STATUS:  completely installed
     FILES:     1776 installed pathnames
                  21 shared pathnames
                   4 linked files
                 136 directories
                  43 executables
              548584 blocks used (approx)

sun4 # pkginfo -l SMClibgcc
   PKGINST:  SMClibgcc
      NAME:  libgcc
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  3.2
   BASEDIR:  /usr/local/lib
    VENDOR:  Free Software Foundation
    PSTAMP:  Steve Christensen
  INSTDATE:  Jun 16 2003 11:52
     EMAIL:  [EMAIL PROTECTED]
    STATUS:  completely installed
     FILES:       25 installed pathnames
                  15 shared pathnames
                   1 directories
                  10 executables
              111319 blocks used (approx)


Many Thanks,

Steve.
----------
Steven Carr,
ISP Engineering,
[EMAIL PROTECTED]

ish GmbH & Co. KG
Network Operations Center
Michael-Schumacher-Str. 1
50170 Kerpen

Reply via email to