Re: Connection exceeded alert.

From: khan Affan <bawag773(at)gmail(dot)com>
To: Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Connection exceeded alert.
Date: 2024-08-06 06:21:42
Message-ID: CAF4emO=mbVCoSGK39eU+EZPefe+EvJ_KVhLiNC_fdnb=TG=3vQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Rajesh,

To effectively troubleshoot this issue, please share your current
PostgreSQL configuration values for shared_buffers, work_mem, and
maintenance_work_mem.

Additionally, please provide details about the application generating these
queries. Are they triggered by POST or GET requests?

To gain deeper insights into query performance, execute the following
commands:

EXPLAIN (ANALYZE, BUFFERS) <your_query>;

SELECT pid, usename, query, state, wait_event_type, wait_event
FROM pg_stat_activity
WHERE wait_event IS NOT NULL;
These commands will help identify performance bottlenecks and resource
contention.

On Tue, Aug 6, 2024 at 9:32 AM Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)com>
wrote:

> Hi all,
>
> I have been trying to find a steps or solution for past 1 year once we
> received a connection exceeded alert. Couldn't get any answer from anybody
> or internet so far.
>
> Today I checked a pgbadger report and matched the timeline and found
> that, at that time of sudden connection hike (not normal), there were 3
> queries running at that time (2 update queries on table a , took 5s each,
> one insert query on table b which took 2.5mns).
>
> Anybody provide me steps what all I have to do 1. At that time of
> connection hike 2. If I am been asked to check after sometime as connection
> dropped to analyse.
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sathish Reddy 2024-08-06 11:08:03 Pg_repack
Previous Message Muhammad Waqas 2024-08-06 05:43:06 Re: Connection exceeded alert.