Re: possible memory leak??

From: "Michael Paesold" <mpaesold(at)gmx(dot)at>
To: "Dave Cramer" <Dave(at)micro-automation(dot)net>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: possible memory leak??
Date: 2002-11-08 13:31:47
Message-ID: 015201c2872b$3001c100$4201a8c0@beeblebrox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Dave Cramer <Dave(at)micro-automation(dot)net> wrote:

> If I run the following program for an extended period of time the
> memory consumed by java keeps increasing 4M at a time. Can anyone else
> confirm this, and next; can anyone explain why? Is this normal? I doubt
it, but
> can't confirm it?
>
> Does anyone have access to an optimizer to run this on?

Have you tried to run System.gc() at the end of each loop?

selectRoutes();
System.gc();
Thread.sleep(2000);
...

Perhaps the JVM just isn't fast enough with the garbage collection.

Regards,
Michael Paesold

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Alex Dovlecel 2002-11-08 13:34:02 JDBC driver problem ?
Previous Message Dave Cramer 2002-11-08 13:11:45 possible memory leak??