Re: Native postgres query to examine FreeableMemory RDS alerts

From: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
To: Michael Guissine <mguissine(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Native postgres query to examine FreeableMemory RDS alerts
Date: 2024-03-13 18:50:51
Message-ID: CAOC+FBV6KZdpcpzTcof-EyxcYJZwzhWsuGLa00yniD8kS0ftPA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Perfect, thank you very much.

On Wed, Mar 13, 2024 at 11:39 AM Michael Guissine <mguissine(at)gmail(dot)com>
wrote:

> Go to your RDS instance in the console, go to the Monitoring and pull "OS
> process list", sort by residential memory descending.
> This will show you all currently running processes (PIDs) and the amount
> of memory they use. You can then go to your database and pull information
> on what that process is doing `select * from pg_stat_activity where pid=?`
>
> [image: image.png]
>
>
> On Wed, Mar 13, 2024 at 2:26 PM Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
> wrote:
>
>> I have a Cloudwatch alert on a postgres RDS instance when freeable memory
>> drops below a certain amount. I find myself unable to really diagnose
>> what's happening when this does happen, and wondered if there were any PG
>> queries I might make to see what could be using so much RAM.
>>
>> --
>> Wells Oliver
>> wells(dot)oliver(at)gmail(dot)com <wellsoliver(at)gmail(dot)com>
>>
>

--
Wells Oliver
wells(dot)oliver(at)gmail(dot)com <wellsoliver(at)gmail(dot)com>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message hector vass 2024-03-13 22:06:08 Re: Dynamically generate varying Number of Column Headers from the Row data
Previous Message Michael Guissine 2024-03-13 18:39:34 Re: Native postgres query to examine FreeableMemory RDS alerts