Subject Re: [Firebird-Java] Connection does not close properly
Author Rodolfo M. Raya
Hi Lars,

Why don't you call System.gc(); after closing the connection?

Rodolfo

On Wed, 30 Oct 2002, Lars George wrote:

> Hi,
>
> Well, it looks like it is garbage collection dependent. With a little test
> app I could verify that the db connections *are* closed but only if the
> corresponding java object is garbage collected. Since our test server is not
> very busy it discards those stale (as in: not used for x minutes)
> connections and create new ones. Since no full garbage collection is
> triggered they are not physically closed.
>
> Is this a feature or can this be rectified somehow? I would highly
> appreciate if they would be closed instantly, i.e. whenever
> FBConnection.close() is called.
>
> Kind regards,
> Lars