Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1astAu-0003D6-P5 for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Apr 2016 14:32:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1astAu-0006qr-Bu for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Apr 2016 14:32:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1astAH-00069j-AD for pgsql-bugs@postgresql.org; Wed, 20 Apr 2016 14:31:37 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1astAD-0000AV-M3 for pgsql-bugs@postgresql.org; Wed, 20 Apr 2016 14:31:36 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u3KDVu828951; Wed, 20 Apr 2016 06:31:56 -0700 Subject: Re: BUG #14101: Postgres Service Crashes With Memory Error And Does Not Recover To: pgsql-bugs@postgresql.org References: <20160419123034.22924.9159@wrigleys.postgresql.org> <25458.1461124620@sss.pgh.pa.us> <21783.1461161360@sss.pgh.pa.us> Cc: Nathan Mascitelli From: John R Pierce Message-ID: <571792C0.3060503@hogranch.com> Date: Wed, 20 Apr 2016 07:31:28 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <21783.1461161360@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -2.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 4/20/2016 7:09 AM, Tom Lane wrote: > Nathan Mascitelli writes: >> >The machine has the postgres server and our application server on it. There >> >are ​around 300 databases and typically ~1000 connections. At the time of >> >the crash there was free RAM and disk space on the server. > You're a braver man than I, to trust Windows with a 1000-connection > server. But anyway, if the backend count is that high it's far from > surprising that you hit some Windows resource limit or other. It's > widely considered best practice to use a connection pooler to limit > the number of backends to something a lot less than that, regardless > of platform. with 300 databases in use, a pooler would not be much help. 1000 connections is an average of 3 connections per database. -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs