Re: What is postmaster doing?

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Dimi Paun <dimi(at)lattica(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Jeff Davis <pgsql(at)j-davis(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: What is postmaster doing?
Date: 2010-10-21 02:39:32
Message-ID: 4CBFA7E4.7080307@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Dimi Paun wrote:
> Sorry, it wasn't a ps output, it was a line from top(1).
> My to header says:
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 23425 postgres 20 0 22008 10m 10m R 99.9 0.5 21:45.87 postmaster
>

Use "top -c" instead. On Linux that will show you what each of the
clients is currently doing most of the time, the ones that are running
for a long time at least.

--
Greg Smith, 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services and Support www.2ndQuadrant.us
Author, "PostgreSQL 9.0 High Performance":
http://www.2ndquadrant.com/books

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Bruce Momjian 2010-10-21 04:07:22 Re: Slow count(*) again...
Previous Message Joshua D. Drake 2010-10-21 02:25:19 Re: BBU Cache vs. spindles