From: paul.malm@lfv.se
To: pgsql-general@lists.postgresql.org
Subject: Memory alloc exception
Date: Tue, 15 Jun 2021 11:09:12 +0000
Message-ID: <1d5fe4184f914a86aabca8ede3cbcc38@lfv.se> (raw)
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 = 128MB
#huge_pages = try
#temp_buffers = 8MB
#max_prepared_transactions = 0
#work_mem = 6MB
work_mem = 64MB
#maintenance_work_mem = 64MB
maintenance_work_mem = 64MB
Then I changed to this postgrsql.conf:
shared_buffers = 4096MB
#huge_pages = try
#temp_buffers = 8MB
#max_prepared_transactions = 0
#work_mem = 6MB
work_mem = 256MB
#maintenance_work_mem = 64MB
maintenance_work_mem = 256MB
And got this error instead:
Org.postgresql.util.PSQLException: AnI/O error occurred while sending to the backend.
Any ideas?
Kind regards,
Paul
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-general@postgresql.org
Cc: paul.malm@lfv.se
Subject: Re: Memory alloc exception
In-Reply-To: <1d5fe4184f914a86aabca8ede3cbcc38@lfv.se>
References: <1d5fe4184f914a86aabca8ede3cbcc38@lfv.se>
* 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