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 1lt7AQ-0005Yg-Mb for pgsql-general@arkaria.postgresql.org; Tue, 15 Jun 2021 11:23:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lt7AP-0008S9-Mo for pgsql-general@arkaria.postgresql.org; Tue, 15 Jun 2021 11:23:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lt7AP-0008S0-9E for pgsql-general@lists.postgresql.org; Tue, 15 Jun 2021 11:23:37 +0000 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lt7AI-0002cu-SE for pgsql-general@lists.postgresql.org; Tue, 15 Jun 2021 11:23:36 +0000 Received: by mail-ot1-x333.google.com with SMTP id w22-20020a0568304116b02904060c6415c7so11587510ott.1 for ; Tue, 15 Jun 2021 04:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=gSGEoASmg+KkzzLRsj3FZ3JFi6wBqioaIN1zazZD0lY=; b=l1B1dLA4ms97fnlqeqNpDJoSYMc3Jw1JU2wkv5BwUdeAAc2rW3Uq5b7fw6gnIX/xa5 y5XekMqocglCNw1R7uFnu18MisNvF6KXWtuh635D1ilMP5ii8v+58L6WSDGg/9UHeM7P FaaNZaZOZU0FfHjjpOc/mQOEtKN1GI1IdOvgryXo7oSYlVdTtpikJhR3EG34AoTS8pCS tUFCu62ROdk7MK5aBNyoT/swtXvho3/oHzNI1K+WehDZwkYugMO7FClQYae4rH3+ZMbz ZXPsvGdZ9HNeg2bCfJfVsHRtFDp8s4ekj5+9nv5Kyb6+IUouuitxKPLSSCnbk0CXqb5o 39jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=gSGEoASmg+KkzzLRsj3FZ3JFi6wBqioaIN1zazZD0lY=; b=p8oTHmtRxd4M+dGGPHgx54mBzCt/jyDQrRHFhS3C3Zr7GC647kaIvI4zUTbM5eGKyb tAUFecxywtFvwY7eaRRc5yjYrQRp+SLsKbl3+pHlhq5LfjtRTZ4yGARmowAZscXUDk71 ZlPFNTg31PWLy/S0rxzDIQoS+0dMXfcoxx/PkzQjEn/Y6rYYcHNuvLdLVyXsOCN5lfaC 290IAapcyzppvO5Fe0KHLkqgcV94TiAl0esVPyDAR5RQdyCXYYKATaC6ZMyzyHbHcIaJ 5VNrLaMTonFytbpML/Po3ABno6kn8vyFmo1z17bXNeCOTJEKojhoat64UM8ZMJD+1nmF q0kQ== X-Gm-Message-State: AOAM5301Br7FmFQfI3Uy3hO37+bTNArQPq2GHbl2YHoKobpd7+i9Pcn7 Cg4sG4hGpHjkrx7t6psD8Cw1wUZFWaX3GQ== X-Google-Smtp-Source: ABdhPJz2/pr5hesh5JdEwvtzapl9r/OD7OBLglVF+2PiLQbHOldN8g9eF+i5FnIHrGij/wfKO8nk8w== X-Received: by 2002:a9d:6a03:: with SMTP id g3mr12013718otn.189.1623756208727; Tue, 15 Jun 2021 04:23:28 -0700 (PDT) Received: from [192.168.88.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id z4sm2723209oih.48.2021.06.15.04.23.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Jun 2021 04:23:27 -0700 (PDT) Subject: Re: Memory alloc exception To: pgsql-general@lists.postgresql.org References: <1d5fe4184f914a86aabca8ede3cbcc38@lfv.se> From: Ron Message-ID: Date: Tue, 15 Jun 2021 06:23:27 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1d5fe4184f914a86aabca8ede3cbcc38@lfv.se> Content-Type: multipart/alternative; boundary="------------93FEFC01528FA7D91F293BF6" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------93FEFC01528FA7D91F293BF6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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. --------------93FEFC01528FA7D91F293BF6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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.
--------------93FEFC01528FA7D91F293BF6--