Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBQxM-0000GX-08 for pgsql-admin@arkaria.postgresql.org; Mon, 19 Aug 2013 15:01:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VBQxL-0001GJ-FN for pgsql-admin@arkaria.postgresql.org; Mon, 19 Aug 2013 15:01:19 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBQxK-0001Ex-7S for pgsql-admin@postgresql.org; Mon, 19 Aug 2013 15:01:18 +0000 Received: from mail-qc0-x235.google.com ([2607:f8b0:400d:c01::235]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBQxG-0008Ce-PG for pgsql-admin@postgresql.org; Mon, 19 Aug 2013 15:01:17 +0000 Received: by mail-qc0-f181.google.com with SMTP id k15so2537332qcv.12 for ; Mon, 19 Aug 2013 08:01:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:date:subject:from:to:message-id:thread-topic:in-reply-to :mime-version:content-type:content-transfer-encoding; bh=egokeXyPeknRn7jJF59V9F6QgqfjP54rAn8t/zhucvc=; b=nLg9HG9oR/ZptLsPl8GmaivRFX+hRpWVY9y8qUW64XuTdy5m4zDEqoXsbTT8IYsOtX Z/2QivevBQUn6Xiw/kzX/9awMyVy+wBsm8p1OgofPcdAQ5lemyd3COlOYjteamCE3Rr9 oNnWRk9SxF1fMVLvJBUTcF0LThz7WuGV+QfU7QihiNwk9Yf0upiUBmIshZBG5C/Nas0N 5UZ86JnrHNJoiQFloi21kA6KGWSc1NfQB7WxINaVzf++pi1F8uEVd7DGiX7RiNIrSem0 UyddeHXlRGr8jqZOWAjvv8an4hpqqnU3Lak5n84bNI1EfZmUNd4WEAjExNAO4CMqO+tF cKQQ== X-Received: by 10.49.105.170 with SMTP id gn10mr15281981qeb.20.1376924473990; Mon, 19 Aug 2013 08:01:13 -0700 (PDT) Received: from [10.8.1.62] (40.166.255.173.client.static.strong-in91.as13926.net. [173.255.166.40]) by mx.google.com with ESMTPSA id x2sm17247495qat.8.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 19 Aug 2013 08:01:13 -0700 (PDT) User-Agent: Microsoft-MacOutlook/14.2.3.120616 Date: Mon, 19 Aug 2013 18:01:10 +0300 Subject: Re: postgres crashes on insert in 40 different threads From: Dzmitry To: Scott Ribe , "pgsql-admin@postgresql.org" Message-ID: Thread-Topic: [ADMIN] postgres crashes on insert in 40 different threads In-Reply-To: <6CDEA2B3-6C42-42D3-BAA8-AF98007012BB@elevated-dev.com> Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable X-Pg-Spam-Score: -0.6 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org I am already using pgpool, is it bad have 550 connections, is it much ? Thank you guys for all your help. Thanks, Dzmitry On 8/19/13 4:43 PM, "Scott Ribe" wrote: >On Aug 19, 2013, at 7:23 AM, St=E9phane Schildknecht > wrote: > >> As Laurenz said, you should have a look at documentation. >>=20 >> It explains how you can lower the risk OOMKiller kills your PostgreSQL >>processes. >> 1. You can set vm.overcommit_memory to 2 in sysctl.conf >> 2. You can adjust the value of oom_score_adj in startup script to >>prevent OOMKiller to kill Postmaster >> 3. You can lower shared_buffers, work_mem and max_connections. > >4. Use pgbouncer, and radically lower the number of pg connections used. > >--=20 >Scott Ribe >scott_ribe@elevated-dev.com >http://www.elevated-dev.com/ >(303) 722-0567 voice > > > > > > >--=20 >Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) >To make changes to your subscription: >http://www.postgresql.org/mailpref/pgsql-admin --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin