pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: lst_hoe02@kwsoft.de
To: pgsql-admin@postgresql.org
Subject: Re: Postgres 9.1.8 - Out of memory: postgres killed after changing "checkoint_completion_target"
Date: Mon, 08 Dec 2014 15:00:29 +0100
Message-ID: <20141208150029.Horde.F0E_48Uk8iKCIkyEwESGiA7@webmail.kwsoft.de> (raw)
In-Reply-To: <CAJghjRatNZM57La8DZsN+-F9bmODQ6DdbuKtp5AfC3WwnUXiVg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>


Zitat von Pierre Slania <pierre.slania@gmail.com>:

> Hi,
>
>
> Application Server :
>
> ----------------------------
>
> AS JBoss  7.1.1.Final with a connection pool
>
> Postgres version running in production
>
> ------------------------------------------------
>
> PostgreSQL 9.1.8 on x86_64-unknown-linux-gnu, compiled by gcc-4.4.real
> (Debian 4.4.5-8) 4.4.5, 64-bit
>
>
>
> OS Server production
>
> --------------------------
>
> Linux “myserver” 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux
>
>
> The following memories value was done today:
>
> postgres@”myserver”:/var/log/postgresql$ free -m
>
>                      total        used         free        shared
> buffers     cached
>
> Mem:         32115      29498       2617          0            110
>            20128
>
> -/+ buffers/cache:       9258      22857
>
> Swap:            0          0          0
>
> No swap allowed in this server

Fix this. Configuring no "Swap" is a common misconception:
http://serverfault.com/questions/49222/centos-how-much-swap-for-16gb-of-ram/332205#332205

>
>  Problem :
>
> ------------
>
> Dec  4th 10:42:41 “myserver” kernel: [7604991.147522] Out of memory: Kill
> process 2904 (postgres) score 217 or sacrifice child

This is a error in your configuration, not in PostgreSQL. PostgreSQL  
is the victim of the OOM nearly for sure not the reason.

See also in  
http://www.postgresql.org/docs/9.1/static/kernel-resources.html  
(17.4.3 Linux Memory Overcommit)

Regards

Andreas

Attachments:

  smime.p7s (application/pkcs7-signature, 5.8K) download

view thread (2+ messages)

Message-ID: <20141208150029.Horde.F0E_48Uk8iKCIkyEwESGiA7@webmail.kwsoft.de>
Permalink:  ../20141208150029.Horde.F0E_48Uk8iKCIkyEwESGiA7@webmail.kwsoft.de/
Also on:    postgresql.org/message-id/20141208150029.Horde.F0E_48Uk8iKCIkyEwESGiA7@webmail.kwsoft.de

 · 

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-admin@postgresql.org
  Cc: lst_hoe02@kwsoft.de
  Subject: Re: Postgres 9.1.8 - Out of memory: postgres killed after changing "checkoint_completion_target"
  In-Reply-To: <20141208150029.Horde.F0E_48Uk8iKCIkyEwESGiA7@webmail.kwsoft.de>
  References: <CAJghjRatNZM57La8DZsN+-F9bmODQ6DdbuKtp5AfC3WwnUXiVg@mail.gmail.com> <20141208150029.Horde.F0E_48Uk8iKCIkyEwESGiA7@webmail.kwsoft.de>

* 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