pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Memory alloc exception
Date: Tue, 15 Jun 2021 06:23:27 -0500
Message-ID: <e3d1aebb-3b87-cc2e-9bc1-afdaaf851e59@gmail.com> (raw)
In-Reply-To: <1d5fe4184f914a86aabca8ede3cbcc38@lfv.se>
References: <1d5fe4184f914a86aabca8ede3cbcc38@lfv.se>

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.

view thread (3+ messages)  latest in thread

Message-ID: <e3d1aebb-3b87-cc2e-9bc1-afdaaf851e59@gmail.com>
Permalink:  ../e3d1aebb-3b87-cc2e-9bc1-afdaaf851e59@gmail.com/
Also on:    postgresql.org/message-id/e3d1aebb-3b87-cc2e-9bc1-afdaaf851e59@gmail.com

 · 

reply

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: ronljohnsonjr@gmail.com
  Subject: Re: Memory alloc exception
  In-Reply-To: <e3d1aebb-3b87-cc2e-9bc1-afdaaf851e59@gmail.com>
  References: <1d5fe4184f914a86aabca8ede3cbcc38@lfv.se> <e3d1aebb-3b87-cc2e-9bc1-afdaaf851e59@gmail.com>

* 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