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 1lt6wa-000599-GM for pgsql-general@arkaria.postgresql.org; Tue, 15 Jun 2021 11:09:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lt6wZ-0003XB-Eo for pgsql-general@arkaria.postgresql.org; Tue, 15 Jun 2021 11:09:19 +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 1lt6wZ-0003Wf-4L for pgsql-general@lists.postgresql.org; Tue, 15 Jun 2021 11:09:19 +0000 Received: from mailgw50out.wm.net ([85.119.129.36]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lt6wV-0001nn-Lx for pgsql-general@lists.postgresql.org; Tue, 15 Jun 2021 11:09:17 +0000 Received: from lfv-exch02p-c.lfv.se (lfv-exch02p-c.lfv.wm.net [10.46.239.22]) by mr-c50n1.wm.net (8.14.4/8.14.4) with ESMTP id 15FB9Do6028635 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 15 Jun 2021 13:09:13 +0200 Received: from lfv-exch03p-c.lfv.se (10.255.247.147) by lfv-exch02p-c.lfv.se (10.255.247.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 13:09:12 +0200 Received: from lfv-exch03p-c.lfv.se ([fe80::a4bb:3779:c725:9896]) by lfv-exch03p-c.lfv.se ([fe80::a4bb:3779:c725:9896%6]) with mapi id 15.01.2176.012; Tue, 15 Jun 2021 13:09:12 +0200 From: To: Subject: Memory alloc exception Thread-Topic: Memory alloc exception Thread-Index: Addhy/A77Z61euljSNCIGj9yuxBL+Q== Date: Tue, 15 Jun 2021 11:09:12 +0000 Message-ID: <1d5fe4184f914a86aabca8ede3cbcc38@lfv.se> Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.247.250] x-tm-as-product-ver: SMEX-14.0.0.3031-8.6.1012-26220.005 x-tm-as-result: No-10--20.024500-8.000000 x-tmase-matchedrid: FvqzeB993ZFHW+94FA8JFysIuzCLc2mNrogFtKd/P7cLBZEuqIL9Sp9x 0tmzvpK2wn76N1IBRSR+yM+F359LkdSxXbZonmxOgNylVbI/EAyoCf7IdvPAJ/wMIcYS/NgHVCe Rwk3k2W4/+RSNQ9LGXlDQ43dkW3a5RS5eRZNKL9GL6bUMM+bbIv98fIf4wIXl/gMNehoKqTvBEk MUA1VSdXUfSLk77wfeRwy2O/go7puk/xfTJxvBQX3O3F/Nshx5KPO1PzowG0Ko8aocg8ZmI5GGU 2vUNnkjPsK2KV1XaEDQROVRawRx6lH5jl3Rub1ADrDTQZ5YEVrrixWWWJYrH0OrZJUSTvYoFnjK VTYbDMDBzLKkqyXgZu8nw7xpXjnC5c06tGS5+E6OW44elw1nYWqwQsDwHvBTPBQdsLupBlU= x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No x-tmase-result: 10--20.024500-8.000000 x-tmase-version: SMEX-14.0.0.3031-8.6.1012-26220.005 x-tm-snts-smtp: 74481FBCBBF6E8FC8A1A9A0E9AAC15198E39E46F190DFE0E31C17F44984FBC2B2000:8 Content-Type: multipart/alternative; boundary="_000_1d5fe4184f914a86aabca8ede3cbcc38lfvse_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_1d5fe4184f914a86aabca8ede3cbcc38lfvse_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi list, I get this error when running a SQL statement in my Java application. ERROR: Invalid memory alloc request size 1683636507 Location: File: d:\pginstaller.auto\postgres.windows-x64\src\backend\utils\= mmgr\mcxt.c, Routine: MemoryContextAlloc, Line: 779 Server SQLState: XX000 I think it has something with to do with PostgreSQL This is how I had my postgrsql.conf: shared_buffers =3D 128MB #huge_pages =3D try #temp_buffers =3D 8MB #max_prepared_transactions =3D 0 #work_mem =3D 6MB work_mem =3D 64MB #maintenance_work_mem =3D 64MB maintenance_work_mem =3D 64MB Then I changed to this postgrsql.conf: shared_buffers =3D 4096MB #huge_pages =3D try #temp_buffers =3D 8MB #max_prepared_transactions =3D 0 #work_mem =3D 6MB work_mem =3D 256MB #maintenance_work_mem =3D 64MB maintenance_work_mem =3D 256MB And got this error instead: Org.postgresql.util.PSQLException: AnI/O error occurred while sending to th= e backend. Any ideas? Kind regards, Paul --_000_1d5fe4184f914a86aabca8ede3cbcc38lfvse_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

Hi list,

I get this error when running a= SQL statement in my Java application.

ERROR: Invalid memory alloc request size 1683636507

Location: File: d:\pginstaller.auto\postgres.windows-x64\src\backend\uti= ls\mmgr\mcxt.c, Routine: MemoryContextAlloc, Line: 779

Server SQLState: XX000

 

I think it has something with to do with PostgreSQL

This is how I had my postgrsql.conf:

shared_buffers =3D 128MB

#huge_pages =3D try

#temp_buffers =3D 8MB

#max_prepared_transactions =3D 0

#work_mem =3D 6MB

work_mem =3D 64MB

#maintenance_work_mem =3D 64MB

maintenance_work_mem =3D  64MB

 

Then I changed to this postgrsql.conf:

shared_buffers =3D 4096MB

#huge_pages =3D try

#temp_buffers =3D 8MB

#max_prepared_transactions =3D 0

#work_mem =3D 6MB

work_mem =3D 256MB

#maintenance_work_mem =3D 64MB

maintenance_work_mem =3D  256MB

 

And got this error instead:

Org.postgresql.util.PSQLException: AnI/O error occurred while sending to= the backend.

 

Any ideas?

 

Kind regards,

Paul

 

--_000_1d5fe4184f914a86aabca8ede3cbcc38lfvse_--