Re: possible memory leak??

From: Dave Cramer <Dave(at)micro-automation(dot)net>
To: Michael Paesold <mpaesold(at)gmx(dot)at>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: possible memory leak??
Date: 2002-11-08 13:53:55
Message-ID: 1036763635.12348.13.camel@inspiron.cramers
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Should the gc run before an OutOfMemoryException is thrown

in other words are the jvm's smart enough to run the gc if they are out
of memory?

Dave

On Fri, 2002-11-08 at 08:31, Michael Paesold wrote:
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Dave Cramer <Dave(at)micro-automation(dot)net>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Daniel Serodio 2002-11-08 14:04:39 Re: JDBC driver problem ?
Previous Message Alex Dovlecel 2002-11-08 13:34:02 JDBC driver problem ?