Re: possible memory leak??

Поиск
Список
Период
Сортировка
От Michael Paesold
Тема Re: possible memory leak??
Дата
Msg-id 015201c2872b$3001c100$4201a8c0@beeblebrox
обсуждение исходный текст
Ответ на DatabaseMetaData.getTables problem  (snpe <snpe@snpe.co.yu>)
Ответы Re: possible memory leak??
Список pgsql-jdbc
Dave Cramer <Dave@micro-automation.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


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: possible memory leak??
Следующее
От: Alex Dovlecel
Дата:
Сообщение: JDBC driver problem ?