From: | Nagaraj Raj <nagaraj(dot)sf(at)yahoo(dot)com> |
---|---|
To: | Justin Pryzby <pryzby(at)telsasoft(dot)com>, Merlin Moncure <mmoncure(at)gmail(dot)com> |
Cc: | postgres performance list <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: DB running out of memory issues after upgrade |
Date: | 2020-02-18 19:10:20 |
Message-ID: | 1013528313.4707645.1582053020884@mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers pgadmin-support pgsql-admin pgsql-bugs pgsql-general pgsql-hackers pgsql-performance pgsql-pkg-yum |
Hi Merlin,
Its configured high value for max_conn, but active and idle session have never crossed the count 50.
DB Size: 20 GBTable size: 30MBRAM: 16GBvC: 4
yes, its view earlier I posted and here is there query planner for new actual view,
"Append (cost=0.00..47979735.57 rows=3194327000 width=288)"" -> Seq Scan on msghist (cost=0.00..15847101.30 rows=3162700000 width=288)"" -> Seq Scan on msghist msghist_1 (cost=0.00..189364.27 rows=31627000 width=288)"
Thanks,Rj On Tuesday, February 18, 2020, 10:51:02 AM PST, Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:
On Tue, Feb 18, 2020 at 12:40 PM Justin Pryzby <pryzby(at)telsasoft(dot)com> wrote:
> This is almost certainly unrelated. It looks like that query did a seq scan
> and accessed a large number of tuples (and pages from "shared_buffers"), which
> the OS then shows as part of that processes memory, even though *shared*
> buffers are not specific to that one process.
Yeah. This server looks highly overprovisioned, I'm in particularly
suspicious of the high max_connections setting. To fetch this out
I'd be tracking connections in the database, both idle and not idle,
continuously. The solution is most likely to install a connection
pooler such as pgbouncer.
merlin
From | Date | Subject | |
---|---|---|---|
Next Message | Pradip Parkale | 2020-02-19 11:28:35 | [pgAdmin][RM5154] [Accessibility] : Alertify |
Previous Message | Merlin Moncure | 2020-02-18 18:49:50 | Re: DB running out of memory issues after upgrade |
From | Date | Subject | |
---|---|---|---|
Next Message | tutiluren | 2020-02-23 05:58:17 | pgAdmin 4 freeze bug in Pale Moon. |
Previous Message | Merlin Moncure | 2020-02-18 18:49:50 | Re: DB running out of memory issues after upgrade |
From | Date | Subject | |
---|---|---|---|
Next Message | sandman42 | 2020-02-19 10:59:43 | Tablespace size management questions |
Previous Message | Merlin Moncure | 2020-02-18 18:49:50 | Re: DB running out of memory issues after upgrade |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2020-02-18 19:36:00 | Re: gen_random_uuid() is immutable in Pg 13devel |
Previous Message | PG Bug reporting form | 2020-02-18 19:07:43 | BUG #16264: Server closed the connection unexpectedly |
From | Date | Subject | |
---|---|---|---|
Next Message | Bellrose, Brian | 2020-02-18 19:39:16 | pglogical install errors openSUSE Leap 42.1 |
Previous Message | Tom Mercha | 2020-02-18 19:07:44 | Re: Is is safe to use SPI in multiple threads? |
From | Date | Subject | |
---|---|---|---|
Next Message | Corey Huinker | 2020-02-18 19:37:10 | Re: Resolving the python 2 -> python 3 mess |
Previous Message | Tomas Vondra | 2020-02-18 18:57:49 | Re: Memory-Bounded Hash Aggregation |
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2020-02-18 23:46:05 | Re: SubtransControlLock and performance problems |
Previous Message | Merlin Moncure | 2020-02-18 18:49:50 | Re: DB running out of memory issues after upgrade |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter J. Holzer | 2020-02-23 10:19:28 | Re: DB running out of memory issues after upgrade |
Previous Message | Merlin Moncure | 2020-02-18 18:49:50 | Re: DB running out of memory issues after upgrade |