Re: ERROR: Out of memory - when connecting to database

From: Chris Barnes <compuguruchrisbarnes(at)hotmail(dot)com>
To: <kuba(at)comgate(dot)cz>, Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: ERROR: Out of memory - when connecting to database
Date: 2010-11-08 19:14:32
Message-ID: BLU149-W22FB18777FF0417C2169F9D44F0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Date: Mon, 8 Nov 2010 20:05:23 +0100
> From: kuba(at)comgate(dot)cz
> To: pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] ERROR: Out of memory - when connecting to database
>
> Replaying to my own mail. Maybe we've found the root cause:
>
> In one database there was a table with 200k records where each record
> contained 15kB bytea field. Auto-ANALYZE was running on that table
> continuously (with statistics target 500). When we avoid the
> auto-ANALYZE via UPDATE table set bytea_column = null; CLUSTER table;
> the problem with ERROR: out of memory went away.

Run pgtune against you configuration and it will tell you what is recommended.

Do you really have 2048 connections to the box?

If yes, maybe you need to run pgbouncer with 2048 connections into pgbouncer concentrator and

100 connections to postgres? Will reduce your resource used significantly.

Chris

In response to

Browse pgsql-general by date

  From Date Subject
Next Message akp geek 2010-11-08 19:18:58 Re: need help with Triggers
Previous Message Jakub Ouhrabka 2010-11-08 19:10:43 Re: ERROR: Out of memory - when connecting to database