Re: Memory leak ? - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Memory leak ?
Date
Msg-id BANLkTi=+1hshp_HeOBVGUgaHwE6fwB4zig@mail.gmail.com
Whole thread Raw
In response to Memory leak ?  (Pierre Le Mouëllic <pierre.lemouellic@xgs-france.com>)
List pgsql-jdbc
2011/4/6 Pierre Le Mouëllic <pierre.lemouellic@xgs-france.com>:

> In eclipse Helios profiler, Jdbc3ResultSet live instances increase (and
> never decrease). Same thing with
> org.postgresql.core.v3.QueryExecutorImpl$ErrorTrackingResultHandler and
> org.postgresql.core.v3.QueryExecutorImpl$1 classes.

When profiling, has a full GC & weak reference collection happened
before you count "live instance"?
Probably those "live" instances are only weakly reachable and will be
cleaned up later.
(The driver uses weak references + a reference queue that is polled
before each query execution to clean up server-side allocated
resources corresponding to JDBC statements / resultsets that were not
properly closed, just discarded)

If that's not the problem, I'd need to know the path from a GC root to
the live instances.

Oliver

pgsql-jdbc by date:

Previous
From: Mikko Tiihonen
Date:
Subject: Re: Memory leak ?
Next
From: Pierre Le Mouëllic
Date:
Subject: Re: Memory leak ?