|
|
sybperl-l Archive
Up Prev Next
From: "Wechsler, Steven M" <WechslerSM at bernstein dot com>
Subject: Sybperl memory leak
Date: Feb 11 1999 6:10PM
Given the following program:
use Sybase::DBlib;
$user ="sa";$password="password";$server="server";
while (1) {
print "opening new connection\n";
$handle = new Sybase::DBlib $user, $password, $server or
die "Unable to connect to server $server";
$handle->dbclose;
sleep 10;
}
I ran this program on NT 4.0 running ActivePerl 5.00502 and the latest
version of Sybperl available from the Activestate web site.
Each iteration of the loop caused 64K more memory to be allocated. Michael,
your web site mentions a 300 byte memory leak; any idea how 300 bytes
becomes 64K?
Steve
--
Steve Wechsler/Senior DB Administrator/Sanford C. Bernstein & Co.
WechslerSM@bernstein.com
"Never underestimate the power of human stupidity" - Lazarus Long
Support the Anti-SPAM amendment: http://www.cauce.org
|