Re: Persistent Connections

2020-06-24 Thread Tim Cross
Peter J. Holzer writes: > On 2020-06-24 13:55:00 -0400, Bee.Lists wrote: >> On Jun 24, 2020, at 6:47 AM, Peter J. Holzer wrote: > Does "I have 37 queries" mean you have seen 37 queries of this type in > some time window (e.g. the last day or hour) or does it mean you are > currently seeing 37

Re: Persistent Connections

2020-06-24 Thread Tim Cross
Bee.Lists writes: >> On Jun 23, 2020, at 8:09 PM, Tim Cross wrote: >> >> Sounds like your web app may not be closing connections once it has >> finished with them? The fact your seeing idle connections would seem to >> support this. I would be verifying there isn't a code path in your >> clie

Re: Persistent Connections

2020-06-24 Thread Peter J. Holzer
On 2020-06-24 13:55:00 -0400, Bee.Lists wrote: > On Jun 24, 2020, at 6:47 AM, Peter J. Holzer wrote: > > The default is 100. What was your reason for reducing it to such a low > > value? > > “PostgreSQL 9 High Availability” recommended core count * 3. I suspected something like that. I don't

Re: Persistent Connections

2020-06-24 Thread Peter J. Holzer
On 2020-06-24 13:45:21 -0400, Bee.Lists wrote: > > Sounds like your web app may not be closing connections once it has > > finished with them? The fact your seeing idle connections would seem to > > support this. I would be verifying there isn't a code path in your > > client application which is f

Re: Persistent Connections

2020-06-24 Thread Bee.Lists
> On Jun 24, 2020, at 6:47 AM, Peter J. Holzer wrote: > > The default is 100. What was your reason for reducing it to such a low > value? “PostgreSQL 9 High Availability” recommended core count * 3. > >> I’ve installed pg_stat_activity and pg_stat_statements. >> >> I access this server th

Re: Persistent Connections

2020-06-24 Thread Bee.Lists
> On Jun 23, 2020, at 8:09 PM, Tim Cross wrote: > > Sounds like your web app may not be closing connections once it has > finished with them? The fact your seeing idle connections would seem to > support this. I would be verifying there isn't a code path in your > client application which is fa

Re: Persistent Connections

2020-06-24 Thread Peter J. Holzer
On 2020-06-23 16:29:46 -0400, Bee.Lists wrote: > I have an issue with a server (v10) that’s seeing increasing > connections until it’s maxxed-out. > > max_connections for my 4-core server is set to 12. The default is 100. What was your reason for reducing it to such a low value? > I’ve inst

Re: Persistent Connections

2020-06-23 Thread Tim Cross
Bee.Lists writes: > I have an issue with a server (v10) that’s seeing increasing connections > until it’s maxxed-out. > > max_connections for my 4-core server is set to 12. > > I’ve installed pg_stat_activity and pg_stat_statements. > > I access this server through a web app, and another c

Re: Persistent Connections

2020-06-23 Thread David G. Johnston
Why is there now a second thread for this topic? On Tue, Jun 23, 2020 at 3:21 PM Bee.Lists wrote: > > > > On Jun 23, 2020, at 4:51 PM, Michael Lewis wrote: > > > > Do you see anything in pg_stat_activity that stays idle for a while and > then *does* disappear on its own? Perhaps some types of c

Re: Persistent Connections

2020-06-23 Thread Bee.Lists
> > On Jun 23, 2020, at 4:51 PM, Michael Lewis wrote: > > Do you see anything in pg_stat_activity that stays idle for a while and then > *does* disappear on its own? Perhaps some types of connections are doing > client side/application stuff before telling the DB to close the connection. I’m

Re: Persistent Connections

2020-06-23 Thread Michael Lewis
On Tue, Jun 23, 2020 at 2:29 PM Bee.Lists wrote: > I have an issue with a server (v10) that’s seeing increasing connections > until it’s maxxed-out. > > max_connections for my 4-core server is set to 12. > > I’ve installed pg_stat_activity and pg_stat_statements. > Do you see anything in pg_stat

Persistent Connections

2020-06-23 Thread Bee.Lists
I have an issue with a server (v10) that’s seeing increasing connections until it’s maxxed-out. max_connections for my 4-core server is set to 12. I’ve installed pg_stat_activity and pg_stat_statements. I access this server through a web app, and another client on two machines. I also sen