Re: Queries very slow and memory consumption too high

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Queries very slow and memory consumption too high
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C202FF6672@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: Queries very slow and memory consumption too high  (Saurabh Dave <saurabhdave@gmail.com>)
Список pgsql-jdbc
Saurabh Dave wrote:
>>>If your problem is something that develops over time, one thing
>>>you could watch out for are resource leaks, most prominently
>>>memory leaks.
>
> What is the recommended way to do that? It seems postgres
> uses shared memory, and we have 15 connections all taking up
> around 35MB as per task manager OR top. We are not able to
> figure out definitatively if there is a memory leak.
> Help/Clues??? Thanks all for your responses so far.

I'm just ranting, a memory leak frequently does not impact
performance (before the machine starts thrashing...).

When watching for memory leaks, you can (as a crude measure)
daily list the memory that each process consumes and
track notable increases for long running processes.

PostgreSQL shared memory should be excluded here: it does
not increase and it will show up in each backend, thus
confusing the issue.

Once things get slow, find out if the CPU or the disks
are busy and watch out for unusual "vmstat" output.

Yours,
Laurenz Albe

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Saurabh Dave
Дата:
Сообщение: Re: Queries very slow and memory consumption too high
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Queries very slow and memory consumption too high