From: | Ron <ronljohnsonjr(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Memory alloc exception |
Date: | 2021-06-15 11:23:27 |
Message-ID: | e3d1aebb-3b87-cc2e-9bc1-afdaaf851e59@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 6/15/21 6:09 AM, paul(dot)malm(at)lfv(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Holtgrewe, Manuel | 2021-06-15 11:40:33 | Re: [ext] Re: Losing data because of problematic configuration? |
Previous Message | paul.malm | 2021-06-15 11:09:12 | Memory alloc exception |