Re: BUG #14101: Postgres Service Crashes With Memory Error And Does Not Recover

From: Nathan Mascitelli <nathanmascitelli(at)geotab(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14101: Postgres Service Crashes With Memory Error And Does Not Recover
Date: 2016-04-20 15:17:23
Message-ID: CAJddYyguxXFLj-w8xs1gn1WKm-htBYWU3FYdU_A-K1f0TypCow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

We are using a connection pooler. On average we see 2-5 connections per
database. But it sounds like we would need to either collect connections
more aggressively or lower the number of databases/server correct?

*Nathan Mascitelli*
Geotab Inc.
Software Developer | B. Eng Engineering Physics

[Direct] *+1 (289) 681-1005*
[Toll-Free] *+1 (877) 436-8221*
[Visit] www.geotab.com
Twitter <http://twitter.com/geotab> | Facebook
<http://www.facebook.com/geotab> | YouTube <http://www.youtube.com/mygeotab>
| LinkedIn
<http://www.linkedin.com/company/102661?trk=tyah&trkInfo=tarId:1403199250031,tas:geotab,idx:2-1-3>

On Wed, Apr 20, 2016 at 10:31 AM, John R Pierce <pierce(at)hogranch(dot)com> wrote:

> On 4/20/2016 7:09 AM, Tom Lane wrote:
>
>> Nathan Mascitelli<nathanmascitelli(at)geotab(dot)com> 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
>
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Nathan Mascitelli 2016-04-20 16:37:55 Re: BUG #14101: Postgres Service Crashes With Memory Error And Does Not Recover
Previous Message John R Pierce 2016-04-20 14:31:28 Re: BUG #14101: Postgres Service Crashes With Memory Error And Does Not Recover