From: | Kevin Grittner <kgrittn(at)ymail(dot)com> |
---|---|
To: | "David(dot)I(dot)Noel(at)gmail(dot)com" <David(dot)I(dot)Noel(at)gmail(dot)com> |
Cc: | PGSQL Mailing List <pgsql-general(at)postgresql(dot)org>, "freebsd-database(at)freebsd(dot)org" <freebsd-database(at)freebsd(dot)org> |
Subject: | Re: PostgreSQL: CPU utilization creeping to 100% |
Date: | 2013-04-03 15:25:52 |
Message-ID: | 1365002752.81518.YahooMailNeo@web162905.mail.bf1.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
David Noel <david(dot)i(dot)noel(at)gmail(dot)com> wrote:
> On 4/2/13, Kevin Grittner <kgrittn(at)ymail(dot)com> wrote:
>> David Noel <david(dot)i(dot)noel(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Fitzpatrick | 2013-04-03 17:14:33 | could not load plperl library |
Previous Message | Carlos Mennens | 2013-04-03 14:24:11 | Re: PostgreSQL Backup Booklet |