Answer the question
In order to leave comments, you need to log in
How to correctly calculate how much memory PostgreSQL takes?
The article describes that PostgreSQL uses shared memory
Why does PostgreSQL use so much memory?
And it also says that top and other utilities incorrectly calculate how much memory PostgreSQL takes.
Maybe there are some utilities that correctly calculate how much memory PostgreSQL takes?
Answer the question
In order to leave comments, you need to log in
sudo curl -L https://raw.githubusercontent.com/pixelb/ps_mem/master/ps_mem.py --output /usr/local/bin/psmem
It is necessary not to count how much memory the DBMS takes, but to configure it in accordance with the desired amount of consumption, see for example - http://pgtune.leopard.in.ua . The reason for this is simple - with active use, postgres will sooner or later take up all the memory available to it, and this is completely normal.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question