Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XyLSa-0002rl-Uj for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Dec 2014 14:08:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XyLSZ-0007ik-Og for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Dec 2014 14:08:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XyLSV-0007ck-0D for pgsql-bugs@postgresql.org; Tue, 09 Dec 2014 14:08:11 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XyLSN-0000Ji-B1 for pgsql-bugs@postgresql.org; Tue, 09 Dec 2014 14:08:05 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 9EC1B29246; Tue, 9 Dec 2014 06:07:59 -0800 (PST) Received: from EX13-CAS-004.vmware.com (EX13-CAS-004.vmware.com [10.113.191.54]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 9B32F194F7; Tue, 9 Dec 2014 06:07:59 -0800 (PST) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-006.vmware.com (10.113.191.26) with Microsoft SMTP Server (TLS) id 15.0.913.22; Tue, 9 Dec 2014 06:07:53 -0800 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.913.22; Tue, 9 Dec 2014 06:07:52 -0800 Message-ID: <5487021F.4070900@vmware.com> Date: Tue, 9 Dec 2014 16:07:27 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: Pierre Slania , "pgsql-bugs@postgresql.org" Subject: Re: Out of memory: postgres killed after changing "checkoint_completion_target" and reloading postgres configuration file References: <3D8F759DF4D90F45A696149A03E61FEB95D6E732@GELATINE.lampiris.local> In-Reply-To: <3D8F759DF4D90F45A696149A03E61FEB95D6E732@GELATINE.lampiris.local> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 12/08/2014 12:47 PM, Pierre Slania wrote: > Problem : > ------------ > Dec 4 10:42:41 "myserver" kernel: [7604991.147522] Out of memory: Kill process 2904 (postgres) score 217 or sacrifice child > > How to cause the error: > ----------------------------- > I changed the parameter "checkpoint_completion_target" from 0.5 to 0.9 in the postgresql.conf file unless the production is up and used by multiple users. After that I made a postgres reload the 4th dec 2014 at 10:20AM > > (Note that same problem has occurred several weeks ago when I changed "checkpoint_segment" from 3 to 10 in the postgresql.conf file after reloading postgres) > > Application that are running > ----------------------------------- > 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 > > Observation: > ---------------- > The database seems to run well from the 4th dec between 10:20AM to 10:42 AM before falling back suddently to out of memory. > It switched to recovery mode and restart automatically. > There were no problem encountered like that before making any change to the checkpoint parameters. > > Attached files > ----------------- > Syslog file and postgresql.log file are attached. I made some clean up in the postgres log file. > > Question: > ------------ > Is it not recommended to change any "checkpoint_xxx" parameters in the postgresql.conf file when the production is running ? There's no such recommendation. It should be totally fine to change those parameters. I don't know why you got the OOM error, but I don't see changing checkpoint settings could cause that. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs