Re: plperl doesn't release memory

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plperl doesn't release memory
Дата
Msg-id 27444.1111682043@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: plperl doesn't release memory  (Sven Willenberger <sven@dmv.com>)
Ответы Re: plperl doesn't release memory  (Sven Willenberger <sven@dmv.com>)
Список pgsql-general
Sven Willenberger <sven@dmv.com> writes:
> Any suggestions on how to trace what is going on? Debug output methods?

The first thing to figure out is whether the leak is inside Perl or in
Postgres proper.  If I were trying to do this I'd run the function a
couple times, then attach to the (idle) backend with gdb and do
    call MemoryContextStats(TopMemoryContext)
to dump a summary of Postgres' memory usage to stderr.  If that doesn't
show any remarkable bloat then the problem is inside Perl (and beyond my
ability to do much with).

One thing I'm still a bit baffled about is why my test didn't show a
problem; it sure looks identical to yours.  Maybe the issue is Perl
version specific?  I tested using the current FC3 version, which is
perl-5.8.5-9.

            regards, tom lane

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

Предыдущее
От: fabrizio ravazzini
Дата:
Сообщение: Pgsql 8.0 on Win32 Production env.
Следующее
От: Gianni Mariani
Дата:
Сообщение: budiling postgresql-8.0.1 on Linux with GCC 4