Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyZ3t-00023R-5c for pgsql-jdbc@arkaria.postgresql.org; Thu, 23 Jul 2020 11:06:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jyZ3r-0008EZ-BT for pgsql-jdbc@arkaria.postgresql.org; Thu, 23 Jul 2020 11:06:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyZ3q-0008ES-A5 for pgsql-jdbc@lists.postgresql.org; Thu, 23 Jul 2020 11:06:51 +0000 Received: from sonic310-57.consmr.mail.ir2.yahoo.com ([77.238.177.30]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jyZ3n-0007yn-Tx for pgsql-jdbc@lists.postgresql.org; Thu, 23 Jul 2020 11:06:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1595502405; bh=JAFheYnEKFhwfN3DBv3JwG5wk8KK4LqDFvGVh8YvJM0=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject; b=uapf0jnbgHfsnAIBbHoGB1RnPfmL0p8S2oPxNKEXDVdwJtd07E4iEhyV2T4l6F9E61dcDcxTiExAbk46gJRYDtpnNDhOXe9q6Rv+pyuq6E0hTmbEjDd++DW8uhosSDrNm6UrBfKjIoFw2vLUJP45xFIVJ8b3UNb2BCRFgiznSq6NZ5MYxA4R0Xbv6WtjQz7qQVSTc7LXZh+UeNVAKLCu2C8LkQnJJnxxbTgtqF6XojI8xeYswT8tsD7cSaC+vrLGoS1iwsPQWXmP7DR18yL92GiMd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iB461RyeB9bgOVEII4Xo_gyJ8EHrsIZ47OM3xVzJe4 YGwfHXosTAn55Nyg6QBRhIsF6ww1pbPQai2LPirTOzF75WCoGHuRUFjPrRZV3Yr6lIJ4.RFqc8a2 bgPnVngy6MCZrOSVxzoApoQNyQ1fq8rHy1Rt35NdnNhQDgmnHu639TxqLfYATamZ29W_aTtAqERr S.vvtxaeJIZhcL2tzTcwb6uolCPQb4zZmKvWNwALmq5efDhslDP0j6xyWgq0pSULQg3vsQGYFAkQ uSaeasM0_dSU.Ibj3KUcvT87u Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ir2.yahoo.com with HTTP; Thu, 23 Jul 2020 11:06:45 +0000 Date: Thu, 23 Jul 2020 11:06:41 +0000 (UTC) From: Christophe combet To: Vladimir Sitnikov Cc: pgsql-jdbc@lists.postgresql.org Message-ID: <382025017.8991457.1595502401602@mail.yahoo.com> In-Reply-To: References: <347898505.8863312.1595495804718.ref@mail.yahoo.com> <347898505.8863312.1595495804718@mail.yahoo.com> Subject: Re: java.lang.OutOfMemoryError: GC overhead limit exceeded MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8991456_1326494733.1595502401600" X-Mailer: WebService/1.1.16271 YMailNorrin Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15 Content-Length: 6234 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_8991456_1326494733.1595502401600 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dear Vladimir, Thank you for your reply. We forgot to mention the command line we used:=C2=A0 =C2=A0java -Duser.lang= uage=3Den -Duser.region=3DUS -XX:ParallelGCThreads=3D1 -Xms8g -Xmx8g -jar o= ur.jar jar_parameters We generated a heap dump with 42.2.14 =C2=A0by adding =C2=A0-XX:+HeapDumpOn= OutOfMemoryError -XX:HeapDumpPath=3D/tmp/mydump.hprof in the command line, = =C2=A0the dump file size is 9GB and contains not shareable data. We are doing a "SELECT column1 FROM table1 ODER BY column1;" (column1 is = =C2=A0 varchar(14) and the table contains 130,080,790 rows), when the excep= tion occurs. We tried 42.2.14 with the previous version of=C2=A0the=C2=A0database with= =C2=A0128,748,634 rows, the exception occurred to (it worked with 42.2.8). = The exception is not linked to the increase in number of rows. Yes, your are right, this a fetch of a very large resultset in a non-transa= ctional manner (Autocommit:true). Best. Le jeudi 23 juillet 2020 =C3=A0 11:28:25 UTC+2, Vladimir Sitnikov a =C3=A9crit : =20 =20 Do you have a heap dump? Have you reviewed to identify the cause of the me= mory consumption? Is it the case that you fetch a very large resultset in a non-transactional= (autocommit=3Dtrue) manner? Vladimir =20 ------=_Part_8991456_1326494733.1595502401600 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear Vl= adimir,

<= /font>
Thank you for= your reply.
=
We = forgot to mention the command line we used:
   java -Duser.language=3Den= -Duser.region=3DUS -XX:ParallelGCThreads=3D1 -Xms8g -Xmx8g -jar our.jar ja= r_parameters

We generated a heap dump with = 42.2.14  by adding  -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpP= ath=3D/tmp/mydump.hprof in the command line,  the dump file size is 9G= B and contains not shareable data.

We are doing a "SELECT column1 FROM table1 ODER BY column1;" = (column1 is   varchar(14) and the table contains 130,080,790 rows), wh= en the exception occurs.

We tried 42.2.14 with the previous version of the datab= ase with 128,748,634 rows, the exception occurred to (it worked with 4= 2.2.8). The exception is not linked to the increase in number of rows.

=
Yes, your are right, this= a fetch of a very large resultset in a non-transactional manner (Autocommi= t:true).

=
Best.=

=20
=20
Le jeudi 23 juillet 2020 =C3=A0 11:28:25 UTC+2, Vladimi= r Sitnikov <sitnikov.vladimir@gmail.com> a =C3=A9crit :


Do you= have a heap dump? Have you reviewed to identify the cause of the memory co= nsumption?

Is it the case that you fetch = a very large resultset in a non-transactional (autocommit=3Dtrue) manner?

Vladimir

------=_Part_8991456_1326494733.1595502401600--