pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christophe combet <chrisc_pro@yahoo.fr>
To: Jorge Solórzano <jorsol@gmail.com>
Cc: Dave Cramer <davecramer@postgres.rocks>
Cc: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: pgsql-jdbc@lists.postgresql.org
Subject: Re: java.lang.OutOfMemoryError: GC overhead limit exceeded
Date: Thu, 23 Jul 2020 15:41:40 +0000 (UTC)
Message-ID: <1715622817.9240482.1595518900550@mail.yahoo.com> (raw)
In-Reply-To: <CA+cVU8PGEAsjE742tXh8fW0gAXpMWj+5BRH89oP2A1KRNvjk4g@mail.gmail.com>
References: <347898505.8863312.1595495804718.ref@mail.yahoo.com>
	<347898505.8863312.1595495804718@mail.yahoo.com>
	<CAB=Je-FS4ChhgnY41HEuYp=U_MMG2ygvNgAq77n54f8yBYECYg@mail.gmail.com>
	<382025017.8991457.1595502401602@mail.yahoo.com>
	<CAB=Je-HbW6ZM_+-DNxhnttmAnMEDXCgtZOQ-QS_FwhvUfba4ug@mail.gmail.com>
	<CAB=Je-GbbnewY-zsk4G_Cr9qvLNwGJ=xaOSvWEuKr0kd10TrYA@mail.gmail.com>
	<928088161.9058165.1595507441236@mail.yahoo.com>
	<1623541738.9101116.1595510491187@mail.yahoo.com>
	<CADK3HH+HcaSEMxnwv36GZsk9HygpCO7T45SKvzeMCSSPYjVVCw@mail.gmail.com>
	<1479303015.9175876.1595513983577@mail.yahoo.com>
	<CA+cVU8PGEAsjE742tXh8fW0gAXpMWj+5BRH89oP2A1KRNvjk4g@mail.gmail.com>

 Dear Jorge,
Thank you for the explanation and the pointer to the doc.
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).
With createStatement()+fetchSize+autocommit=false the exception disappeared.
Thank you very much.
    Le jeudi 23 juillet 2020 à 16:31:06 UTC+2, Jorge Solórzano <jorsol@gmail.com> a écrit :  
 
 The only change that could affect between 42.2.10 (which works based
on your first message), and 42.2.11+ is the introduction of the tuple
abstraction.

The autocommit=false + fetchSize combo should help with large tables:
https://jdbc.postgresql.org/documentation/head/query.html#fetchsize-example


On Thu, Jul 23, 2020 at 4:19 PM Christophe combet <chrisc_pro@yahoo.fr> wrote:
>
> Dear Dave,
>
> The table definition is:
>
> CREATE TABLE mytable (
>    column1 character varying(14) NOT NULL,
>    column2 integer NOT NULL,
>    column3 bytea NOT NULL
> );
>
> ALTER TABLE ONLY mytable
>    ADD CONSTRAINT mytable_pkey PRIMARY KEY (column1);
>
> Column column3 contains zipped data (BLOB and toast table).
>
> The full dump of the table (pg_dump as SQL text) is 24GB.
>
> Thanks.
> Le jeudi 23 juillet 2020 à 15:24:54 UTC+2, Dave Cramer <davecramer@postgres.rocks> a écrit :
>
>
>
>
> On Thu, 23 Jul 2020 at 09:21, Christophe combet <chrisc_pro@yahoo.fr> wrote:
>
>
> autocommit=false & fetchSize=100 or 10000 : same exception.
>
> 42.2.10 still running.
>
>
> Is there a very large column in there
>
>
> Dave Cramer
> www.postgres.rocks
>
>
>
>
>
> Le jeudi 23 juillet 2020 à 14:30:56 UTC+2, Christophe combet <chrisc_pro@yahoo.fr> a écrit :
>
>
>
> Thank you for pointing the link between auto commit an buffering.
>
> autocommit=false: same exception.
>
> We try fetchSize.
>
> Thanks.
> Le jeudi 23 juillet 2020 à 13:47:14 UTC+2, Vladimir Sitnikov <sitnikov.vladimir@gmail.com> a écrit :
>
>
> >can you try switching to autocommit=false?
>
> + you probably need to configure fetchSize as well.
>
> Vladimir
>

  

view thread (21+ messages)  latest in thread

Message-ID: <1715622817.9240482.1595518900550@mail.yahoo.com>
Permalink:  ../1715622817.9240482.1595518900550@mail.yahoo.com/
Also on:    postgresql.org/message-id/1715622817.9240482.1595518900550@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: chrisc_pro@yahoo.fr, jorsol@gmail.com, davecramer@postgres.rocks, sitnikov.vladimir@gmail.com
  Subject: Re: java.lang.OutOfMemoryError: GC overhead limit exceeded
  In-Reply-To: <1715622817.9240482.1595518900550@mail.yahoo.com>
  References: <347898505.8863312.1595495804718.ref@mail.yahoo.com> <347898505.8863312.1595495804718@mail.yahoo.com> <CAB=Je-FS4ChhgnY41HEuYp=U_MMG2ygvNgAq77n54f8yBYECYg@mail.gmail.com> <382025017.8991457.1595502401602@mail.yahoo.com> <CAB=Je-HbW6ZM_+-DNxhnttmAnMEDXCgtZOQ-QS_FwhvUfba4ug@mail.gmail.com> <CAB=Je-GbbnewY-zsk4G_Cr9qvLNwGJ=xaOSvWEuKr0kd10TrYA@mail.gmail.com> <928088161.9058165.1595507441236@mail.yahoo.com> <1623541738.9101116.1595510491187@mail.yahoo.com> <CADK3HH+HcaSEMxnwv36GZsk9HygpCO7T45SKvzeMCSSPYjVVCw@mail.gmail.com> <1479303015.9175876.1595513983577@mail.yahoo.com> <CA+cVU8PGEAsjE742tXh8fW0gAXpMWj+5BRH89oP2A1KRNvjk4g@mail.gmail.com> <1715622817.9240482.1595518900550@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox