Re: What is postmaster doing?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: Dimi Paun <dimi(at)lattica(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: What is postmaster doing?
Date: 2010-10-20 20:26:14
Message-ID: 3615.1287606374@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> On Wed, 2010-10-20 at 14:44 -0400, Dimi Paun wrote:
>> 23425 postgres 20 0 22008 10m 10m R 99.9 0.5 21:45.87 postmaster
>>
>> I'd like to figure out what it is doing. How can I figure out what
>> statement causes the problem?

> It seems strange that the postmaster is eating 99% cpu. Is there a
> chance that it's flooded with connection attempts?

It's probably a backend process, not the postmaster --- I suspect the
OP is using a version of ps that only tells you the original process
name by default. "ps auxww" or "ps -ef" (depending on platform)
is likely to be more informative. Looking into pg_stat_activity,
even more so.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Mladen Gogala 2010-10-20 20:30:19 Re: What is postmaster doing?
Previous Message Jeff Davis 2010-10-20 19:59:41 Re: What is postmaster doing?