Skip site navigation (1) Skip section navigation (2)

Memory leak in 8.0 JDBC driver?

From: "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Memory leak in 8.0 JDBC driver?
Date: 2005-08-11 17:07:07
Message-ID: 52EF20B2E3209443BC37736D00C3C1380422A3A0@EXADV1.host.magwien.gv.at (view raw or flat)
Thread:
Lists: pgsql-jdbc
Before I file a bug, I'd like to ask if the problem is known or if I
have done anything wrong.

I am running a database stress test against a PostgreSQL 8.0.3 database
on a Linux machine.
The test program runs on a Windows 2000 client via JDBC, it starts
several threads, each
of which opens a database connection and issues random statements
against the database
until the program is interrupted.

After about 2 hours, the program always dies with an OutOfMemoryError.

I have tried both JRE 1.4.2_02 and 1.5.0_04 from Sun.
I would suspect a programming error on my side, except the same program
on the same machine
runs for days without problems if I run it against other databases
(Derby, Firebird, MySql,
Oracle, MaxDB).

I have got the JDBC3 driver 8.0 Build 312 from
http://jdbc.postgresql.org/download.html,
and I have also tried downloading and building from source.
No matter what I do, memory runs out.

- Should I report this as a bug?
- I did not want to spam the list with the source of my test program,
but I'd happily do
  so if you think it would help.
- Do you have any hints as to how I could debug the problem myself? Can
you recommend a
  memory profiler?

Thank you,
Laurenz Albe

Responses

pgsql-jdbc by date

Next:From: Nanu RamDate: 2005-08-11 17:43:28
Subject: Re: Memory leak in 8.0 JDBC driver?
Previous:From: Andres LedesmaDate: 2005-08-11 13:49:02
Subject: Re: postgresql and java data types mismatch.....

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group