pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedMemory alloc exception
3+ messages / 3 participants
[nested] [flat]
* Memory alloc exception
@ 2021-06-15 11:09 paul.malm@lfv.se
2021-06-15 11:23 ` Re: Memory alloc exception Ron <ronljohnsonjr@gmail.com>
2021-06-15 13:43 ` Re: Memory alloc exception Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 3+ messages in thread
From: paul.malm@lfv.se @ 2021-06-15 11:09 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Memory alloc exception
2021-06-15 11:09 Memory alloc exception paul.malm@lfv.se
@ 2021-06-15 11:23 ` Ron <ronljohnsonjr@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Ron @ 2021-06-15 11:23 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 6/15/21 6:09 AM, paul.malm@lfv.se wrote:
>
> 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
>
Is Postgresql running on Windows?
What version?
> 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.
>
Failing hardware?
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Memory alloc exception
2021-06-15 11:09 Memory alloc exception paul.malm@lfv.se
@ 2021-06-15 13:43 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2021-06-15 13:43 UTC (permalink / raw)
To: paul.malm@lfv.se; +Cc: pgsql-general@lists.postgresql.org
<paul.malm@lfv.se> writes:
> I get this error when running a SQL statement in my Java application.
> ERROR: Invalid memory alloc request size 1683636507
This is a pretty common symptom of corrupt data (specifically, that the
length word of a variable-length field is garbage). More than that
can't be said with the info you've provided. But I'd be thinking about
"how do I clean up the corruption and prevent a recurrence", not
"I need to increase memory settings".
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2021-06-15 13:43 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 11:09 Memory alloc exception paul.malm@lfv.se
2021-06-15 11:23 ` Ron <ronljohnsonjr@gmail.com>
2021-06-15 13:43 ` Tom Lane <tgl@sss.pgh.pa.us>
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