Re: PostgreSQL: CPU utilization creeping to 100%

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: PostgreSQL: CPU utilization creeping to 100%
Дата
Msg-id 1365002752.81518.YahooMailNeo@web162905.mail.bf1.yahoo.com
обсуждение исходный текст
Ответ на Re: PostgreSQL: CPU utilization creeping to 100%  (David Noel <david.i.noel@gmail.com>)
Ответы Re: PostgreSQL: CPU utilization creeping to 100%  (David Noel <david.i.noel@gmail.com>)
Список pgsql-general
David Noel <david.i.noel@gmail.com> wrote:
> On 4/2/13, Kevin Grittner <kgrittn@ymail.com> wrote:
>> David Noel <david.i.noel@gmail.com> wrote:
>>
>>> 'select * from pg_stat_activity' shows that the queries are not
>>> waiting, and are in the idle state.
>>
>> The process is idle or the process is running the query?  If the
>> latter, what do you mean when you say "the queries ... are in the
>> idle state"?
>
> select * from pg_stat_activity returns a table containing a column
> labeled "state". When the postgres process is at 100% utilization and
> the application has hung, this query returns the value "idle" in that
> field. When things are running properly, as they are for the moment
> now, the value is "active".

When a connection shows "idle", the related process should be
showing zero CPU usage.  Are you seeing something different?  If
so, is the transaction or query start time changing from one sample
to the next?

--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Carlos Mennens
Дата:
Сообщение: Re: PostgreSQL Backup Booklet
Следующее
От: Paul Tilles
Дата:
Сообщение: upgrading from V8.3.4 to V9.2.4