Re: java.lang.OutOfMemoryError: GC overhead limit exceeded

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: java.lang.OutOfMemoryError: GC overhead limit exceeded
Дата
Msg-id 322cce1b-6e78-ace4-f7c0-be07be5346ce@gmx.net
обсуждение исходный текст
Ответ на java.lang.OutOfMemoryError: GC overhead limit exceeded  (Christophe combet <chrisc_pro@yahoo.fr>)
Список pgsql-jdbc
Christophe combet schrieb am 23.07.2020 um 17:41:
> Indeed, the autocommit=false + fetchSize combo is working. I did a
> mistake when trying the first time as suggested by Vladimir: I used
> createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY)
> which are not the good parameters to be used (bad copy/paste).

You would need

    createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY)

Thomas



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

Предыдущее
От: Christophe combet
Дата:
Сообщение: Re: java.lang.OutOfMemoryError: GC overhead limit exceeded
Следующее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: java.lang.OutOfMemoryError: GC overhead limit exceeded