From: Nick Fankhauser <nickf@ontko.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Database is slow, vacuum hangs
Date: Fri, 1 Mar 2002 16:47:48 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGIEIKEHAA.nickf@ontko.com> (raw)
In-Reply-To: <1393.1015017360@sss.pgh.pa.us>
> Is the vacuum actually running (accumulating any CPU time)? Or is it
> just waiting on a lock held by one of those other guys?
After a little blip at startup, it stops using CPU. Here's a snippet of the
"ps":
21966 pts/0 S 0:00 /bin/sh /usr/lib/postgresql/bin/vacuumdb temp
21971 pts/0 S 0:00 /usr/lib/postgresql/bin/psql -c VACUUM -d temp
21972 ? S 0:00 postgres: postgres temp [local] VACUUM waiting
> And what are they doing --- who started them, what query was sent to
> 'em, etc?
Here they are- they appear to be selects via JDBC initiated by Tomcat, but I
can't think of a way to find out what the actual query was (the browser
sessions are gone):
18980 ? R 193:28 postgres: www-data temp 127.0.0.1 SELECT
16093 ? R 197:05 postgres: www-data temp 127.0.0.1 SELECT
> If you haven't a clue, try attaching to each process with a debugger and
> printing out the global variable debug_query_string.
How do I do that?
Thanks,
NickF
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: nickf@ontko.com, tgl@sss.pgh.pa.us
Subject: Re: Database is slow, vacuum hangs
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGIEIKEHAA.nickf@ontko.com>
References: <1393.1015017360@sss.pgh.pa.us> <NEBBLAAHGLEEPCGOBHDGIEIKEHAA.nickf@ontko.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox