From: | "Nick Fankhauser" <nickf(at)ontko(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "pgsql-admin" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Database is slow, vacuum hangs |
Date: | 2002-03-01 21:47:48 |
Message-ID: | NEBBLAAHGLEEPCGOBHDGIEIKEHAA.nickf@ontko.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-03-01 22:12:04 | Re: Database is slow, vacuum hangs |
Previous Message | Tom Lane | 2002-03-01 21:16:00 | Re: Database is slow, vacuum hangs |