From: Rob Sargent <robjsargent@gmail.com>
To: Christophe combet <chrisc_pro@yahoo.fr>
To: pgsql-jdbc@lists.postgresql.org
Subject: Re: java.lang.OutOfMemoryError: GC overhead limit exceeded
Date: Thu, 23 Jul 2020 09:32:02 -0600
Message-ID: <211f0c9b-8bea-6f0a-e069-9fcd8fa8bfb6@gmail.com> (raw)
In-Reply-To: <1988332937.9191166.1595514781712@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>
<43984f6e-0733-0316-c14d-d092c6efd9a8@gmail.com>
<1988332937.9191166.1595514781712@mail.yahoo.com>
On 7/23/20 8:33 AM, Christophe combet wrote:
> Dear Rob,
>
> Total RAM is 512GB.
>
> Runtime.getRuntime().freeMemory() says: 7,630,918,904 at the time of
> issuing the query.
>
> jConsole timed out and it is impossible to reconnect. I did a screen
> capture at the time of the freeze.
>
> Le jeudi 23 juillet 2020 à 15:33:34 UTC+2, Rob Sargent
> <robjsargent@gmail.com> a écrit :
>
>
>
>
> On 7/23/20 6:30 AM, Christophe combet wrote:
> >
> > 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 <mailto:sitnikov.vladimir@gmail.com>> a
> écrit :
> >
> >
> > >can you try switching to autocommit=false?
> >
> > + you probably need to configure fetchSize as well.
> >
> > Vladimir
>
> >
> You set the 8G limit on the java process but did you tell up the
> available RAM? This query would require that about 3G be available to
> hold all the data. Can you use jConsole to establish how much memory is
> available at the time of issuing the query?
>
>
>
Upthread the select statement returned only "column1"
* We are doing a "SELECT column1 FROM table1 ODER BY column1;" (column1
* is varchar(14) and the table contains 130,080,790 rows), when the *
* exception occurs.
Are you reading in the bytea column as well?
And does it finish if you add more memory to the jvm (just for testing
purposes).
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: robjsargent@gmail.com, chrisc_pro@yahoo.fr
Subject: Re: java.lang.OutOfMemoryError: GC overhead limit exceeded
In-Reply-To: <211f0c9b-8bea-6f0a-e069-9fcd8fa8bfb6@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> <43984f6e-0733-0316-c14d-d092c6efd9a8@gmail.com> <1988332937.9191166.1595514781712@mail.yahoo.com> <211f0c9b-8bea-6f0a-e069-9fcd8fa8bfb6@gmail.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