A
A
Anton2018-03-29 09:04:09
linux
Anton, 2018-03-29 09:04:09

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

2 answer(s)
O
O. J, 2018-03-30
Patsev @chemtech

sudo curl -L https://raw.githubusercontent.com/pixelb/ps_mem/master/ps_mem.py --output /usr/local/bin/psmem

will return a detailed table (Shared, private) of used memory for each running daemon

K
ky0, 2018-03-29
@ky0

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 question

Ask a Question

731 491 924 answers to any question