PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: Memory leak in Sybperl 2.0.9 on NT?
Date: Feb 12 1998 11:05PM

Jamie Thingelstad wrote:
> 
> Michael Peppler stated:
> #
> # I am aware of the problem - in testing here after 11000 connections
> # the process space has increased by about 3meg ().
> #
> # However I have not been able to find out *where* the leak occurs.
> #
> # But I'll try to find some time to find out more.
> #
> # Does anyone on the list have purify (or a similar product) that
> # they could use on sybperl?
> #
> 
> Hello Michael,
> 
> I attempted to run it through Purify but after Purify sat there for 10
> minutes doing nothing but exercising the CPU I gave up. This leak can
> be exercised with the following test program:
> 
> use Sybase::DBlib;
> 
> $i = 0;
> 
> while (1) {
>         printf "Attempt %d.\n", $i++;
>         my $dbh = new Sybase::DBlib "xxxxxxxx", "xxxxxxxx", "xxxxxxxx";
>         undef($dbh);
> }
> 
> If you have a suggestion on how I might make purify work, let me know.

Unfortunately I've never used purify - I just know it exists and
what it does :-)

Yes the above script (using either DBlib or CTlib will leak pretty
badly. 

Michael
--
Michael Peppler       -||-  Data Migrations Inc.
mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler