Krambambuli has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that the script using the code steadily grows over runtime, always in 4 byte increments; the increment happens not with each iteration, but (apparently random) after 5, 6 or 7 iterations. I also found that it's the call to $sth->execute() that causes the increase in memory footprint.{ my $sth; sub _read_from_db { my ($array_ref) = @_; if (not defined $sth) { $sql = qq/ ... /; $sth = $dbh->prepare( $sql ); } $sth->bind_param( ... ); $sth->execute(); @$array_ref = $sth->fetchrow_array(); } }
There is a memory leak from the Oracle Client Interface on HP-UX 11 * Scenario: A memory leak has been observed from the Oracle Client + Interface (OCI) when using Oracle 9i Release 2 (9.2.0.1) on HP-UX 11. * Solution: This problem has been fixed by Oracle and the fix is a +vailable by upgrading to Oracle 9i Release 2 Database Server Patch Set 2 for H +P9000 Series HP-UX (64-bit). This has the Oracle patch number of 2761332. To install the above Oracle patch, you might need to u +pgrade your Oracle installer (OUI) to version 2.2.0.18.0 first. The Oracle patch number for + this upgrade is 2878462.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Centos 5 specific DBI memory leak
by cdarke (Prior) on Aug 14, 2008 at 07:40 UTC | |
by Burak (Chaplain) on Aug 14, 2008 at 08:07 UTC | |
by Krambambuli (Curate) on Aug 14, 2008 at 08:43 UTC | |
by Krambambuli (Curate) on Aug 14, 2008 at 08:37 UTC | |
|
Re: Centos 5 specific DBI memory leak
by jbert (Priest) on Aug 14, 2008 at 16:01 UTC | |
by Krambambuli (Curate) on Aug 15, 2008 at 07:57 UTC | |
|
Re: Centos 5 specific DBI memory leak
by gsiems (Deacon) on Aug 14, 2008 at 18:45 UTC | |
by Krambambuli (Curate) on Aug 15, 2008 at 08:02 UTC |