Re: [Solved] 8.3 Stats Collector Stuck at 100% CPU

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [Solved] 8.3 Stats Collector Stuck at 100% CPU
Дата
Msg-id 15963.1270133108@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [Solved] 8.3 Stats Collector Stuck at 100% CPU  (Josh Kupershmidt <schmiddy@gmail.com>)
Ответы Re: [Solved] 8.3 Stats Collector Stuck at 100% CPU  (Josh Kupershmidt <schmiddy@gmail.com>)
Список pgsql-general
Josh Kupershmidt <schmiddy@gmail.com> writes:
> The solution for me was simply to run pg_stat_reset(), and the problem
> went away within a few seconds. The $PGDATA/global/pgstat.stat file
> was 1.2GB before the reset, and went down to ~250KB after the reset.
> It looks like this file is adding on 4MB or so per day at the current
> rate, so I'll likely have to do this again in a few months.

Hm.  It sounds like you are "leaking" stats collector table entries for
some reason.  It would be good to fix the underlying problem rather than
just resign yourself to a manual workaround.  Is there anything unusual
about your workload that might trigger this?

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: simultaneously reducing both memory usage and runtime for a query
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: transaction control in pl/pgsql