From mona@loopone.com Mon Feb 17 22:14:06 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BB36B47580B for ; Mon, 17 Feb 2003 17:14:06 -0500 (EST) Received: from serv1.aus1.texas.net (serv1.aus1.texas.net [216.166.60.40]) by postgresql.org (Postfix) with ESMTP id 30030475461 for ; Mon, 17 Feb 2003 17:14:06 -0500 (EST) Received: from Rendlesham (ao039.ao.texas.net [209.99.32.167]) by serv1.aus1.texas.net (Postfix) with SMTP id 42A153A20B for ; Mon, 17 Feb 2003 16:14:07 -0600 (CST) Message-ID: <024b01c2d6d2$484c9590$08c809c0@Rendlesham> From: "Mona Gamboa" To: Subject: please help--database just locks up. Date: Mon, 17 Feb 2003 15:16:54 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0248_01C2D697.9B024C20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/269 X-Sequence-Number: 7467 This is a multi-part message in MIME format. ------=_NextPart_000_0248_01C2D697.9B024C20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable we are running linux and postgres7.3.2 in a production environment. the database just 'locks ups.' if i try to get into psql X [where X is my = database or template 0 or template 1] it just sits there. the log files don't say anything......there's no indication as to what is = happening. if i look at top it says 100% idle, and the postmaster is supposedly still = running, as i see it when i do a ps auuwx| grep ^postgres.... can anybody please help me figure out how to find out what's happening? thank you so much, Mona Gamboa ------=_NextPart_000_0248_01C2D697.9B024C20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
we are running linux and postgres7.3.2 in = a=20 production environment.
 
the database just 'locks ups.'  if i = try to=20 get into psql X [where X is my database or template 0 or template 1]  = it=20 just sits there.
the log files don't  say anything....= ..there's=20 no indication as to what is happening.
 
if i look at top it says 100% idle, and th= e=20 postmaster is supposedly still running, as i see it when i do a ps auuwx| g= rep=20 ^postgres....
 
can anybody please help me figure out how = to find=20 out what's happening?
 
thank you so much,
 
Mona Gamboa
 
------=_NextPart_000_0248_01C2D697.9B024C20-- From ed@LoehrTech.com Mon Feb 17 22:58:24 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 35DEF475B07 for ; Mon, 17 Feb 2003 17:58:24 -0500 (EST) Received: from mta11.adelphia.net (unknown [64.8.50.205]) by postgresql.org (Postfix) with ESMTP id 8D9C8475AEC for ; Mon, 17 Feb 2003 17:58:23 -0500 (EST) Received: from bingo ([68.70.98.78]) by mta11.adelphia.net (InterMail vM.5.01.05.25 201-253-122-126-125-20021216) with ESMTP id <20030217225824.KNVP29781.mta11.adelphia.net@bingo>; Mon, 17 Feb 2003 17:58:24 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Ed Loehr To: "Mona Gamboa" , Subject: Re: please help--database just locks up. Date: Mon, 17 Feb 2003 15:58:58 -0700 User-Agent: KMail/1.4.3 References: <024b01c2d6d2$484c9590$08c809c0@Rendlesham> In-Reply-To: <024b01c2d6d2$484c9590$08c809c0@Rendlesham> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302171558.58222.ed@LoehrTech.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/284 X-Sequence-Number: 7482 Can you post the output of these commands? uname -a export PGDATA=3D/path/to/your/data grep ^log_ $PGDATA/postgresql.conf cat $PGDATA/postmaster.pid ps augxwww | egrep 'postgres|postmaster|PID' psql -d template1 -c "select version()" uptime df $PGDATA Regards, Ed On Monday February 17 2003 3:16, Mona Gamboa wrote: > we are running linux and postgres7.3.2 in a production environment. > > the database just 'locks ups.' if i try to get into psql X [where > X is my database or template 0 or template 1] it just sits there. > the log files don't say anything......there's no indication as to > what is happening. > > if i look at top it says 100% idle, and the postmaster is > supposedly still running, as i see it when i do a ps auuwx| grep > ^postgres.... > > can anybody please help me figure out how to find out what's > happening? > > thank you so much, > > Mona Gamboa From pggeneral@bluepolka.net Mon Feb 17 23:06:22 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2F4354758BD for ; Mon, 17 Feb 2003 18:06:22 -0500 (EST) Received: from mta9.adelphia.net (unknown [64.8.50.199]) by postgresql.org (Postfix) with ESMTP id 40F4A475843 for ; Mon, 17 Feb 2003 18:06:21 -0500 (EST) Received: from bingo ([68.70.98.78]) by mta9.adelphia.net (InterMail vM.5.01.05.25 201-253-122-126-125-20021216) with ESMTP id <20030217230623.PKQP17699.mta9.adelphia.net@bingo>; Mon, 17 Feb 2003 18:06:23 -0500 Content-Type: text/plain; charset="iso-8859-1" From: "Ed L." To: "Mona Gamboa" , Subject: Re: please help--database just locks up. Date: Mon, 17 Feb 2003 16:06:56 -0700 User-Agent: KMail/1.4.3 References: <024b01c2d6d2$484c9590$08c809c0@Rendlesham> In-Reply-To: <024b01c2d6d2$484c9590$08c809c0@Rendlesham> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302171606.56921.pggeneral@bluepolka.net> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/286 X-Sequence-Number: 7484 Is it reproduceable after a restart? Can you dump the production=20 data, reload on a test cluster, and reproduce it with any=20 consistency? Can you post the output of these commands? uname -a export PGDATA=3D/path/to/your/data egrep '^log_|lock' $PGDATA/postgresql.conf cat $PGDATA/postmaster.pid ps augxwww | egrep 'postgres|postmaster|PID' psql -d template1 -c "select version()" uptime df $PGDATA Regards, Ed On Monday February 17 2003 3:16, Mona Gamboa wrote: > we are running linux and postgres7.3.2 in a production environment. > > the database just 'locks ups.' if i try to get into psql X [where > X is my database or template 0 or template 1] it just sits there. > the log files don't say anything......there's no indication as to > what is happening. > > if i look at top it says 100% idle, and the postmaster is > supposedly still running, as i see it when i do a ps auuwx| grep > ^postgres.... > > can anybody please help me figure out how to find out what's > happening? > > thank you so much, > > Mona Gamboa From mona@loopone.com Mon Feb 17 23:49:04 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A70BE474E53 for ; Mon, 17 Feb 2003 18:49:04 -0500 (EST) Received: from mta4.adelphia.net (unknown [64.8.50.184]) by postgresql.org (Postfix) with ESMTP id 02AC1474E42 for ; Mon, 17 Feb 2003 18:49:04 -0500 (EST) Received: from bingo ([68.70.98.78]) by mta4.adelphia.net (InterMail vM.5.01.05.25 201-253-122-126-125-20021216) with ESMTP id <20030217234906.MZHD28921.mta4.adelphia.net@bingo> for ; Mon, 17 Feb 2003 18:49:06 -0500 Content-Type: text/plain; charset="iso-8859-1" From: "Mona Gamboa" (by way of Ed L. ) Subject: Re: please help--database just locks up. Date: Mon, 17 Feb 2003 16:49:40 -0700 User-Agent: KMail/1.4.3 To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302171649.40298.pgadmin@bluepolka.net> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/271 X-Sequence-Number: 7469 ok...here's the output.[kinda nasty to read] uname -a Linux aus-db-1.loopone.com 2.4.9-e.3enterprise #1 SMP Fri May 3 16:35:33 EDT 2002 i686 unknown [postgres@aus-db-1 postgres]$ grep ^log_ $PGDATA/postgresql.conf log_connections =3D true #changed this whole block to true -- by Mona G. log_pid =3D true log_statement =3D true log_duration =3D true log_timestamp =3D true log_min_error_statement =3D error # Values in order of increasing severity: [postgres@aus-db-1 postgres]$ cat $PGDATA/postmaster.pid 2411 /home/db-pri/postgres/pgsql/DBTRANS 5432001 98306 [postgres@aus-db-1 postgres]$ ps augxwww | egrep 'postgres|postmaster|PID' USER PID %CPU %MEM VSZ RSS TTY=20=20=20 STAT START TIME COMMAND postgres 2398 0.0 0.9 211248 14200 ?=20 S 02:38 0:29 /usr/local/jdk1.4.1/bin/java -Dlog.base.name=3D/home/db-pri/postgres/logs/db-p ri_dbtrans -Dsend.email=3Dfalse -Dsave.errors=3Dtrue -Dsave.queries=3Dfalse -Dmess age.threshold=3D300 com.loopone.logrotator.LogRotator postgres 2407 0.0 0.9 211248 14200 ? S 02:38 0:00 /usr/local/jdk1.4.1/bin/java -Dlog.base.name=3D/home/db-pri/postgres/logs/db-p ri_dbtrans -Dsend.email=3Dfalse -Dsave.errors=3Dtrue -Dsave.queries=3Dfalse -Dmess age.threshold=3D300 com.loopone.logrotator.LogRotator postgres 2408 0.0 0.9 211248 14200 ? S 02:38 0:01 /usr/local/jdk1.4.1/bin/java -Dlog.base.name=3D/home/db-pri/postgres/logs/db-p ri_dbtrans -Dsend.email=3Dfalse -Dsave.errors=3Dtrue -Dsave.queries=3Dfalse -Dmess age.threshold=3D300 com.loopone.logrotator.LogRotator postgres 2409 0.0 0.9 211248 14200 ? S 02:38 0:00 /usr/local/jdk1.4.1/bin/java -Dlog.base.name=3D/home/db-pri/postgres/logs/db-p ri_dbtrans -Dsend.email=3Dfalse -Dsave.errors=3Dtrue -Dsave.queries=3Dfalse -Dmess age.threshold=3D300 com.loopone.logrotator.LogRotator postgres 2410 0.0 0.9 211248 14200 ? S 02:38 0:00 /usr/local/jdk1.4.1/bin/java -Dlog.base.name=3D/home/db-pri/postgres/logs/db-p ri_dbtrans -Dsend.email=3Dfalse -Dsave.errors=3Dtrue -Dsave.queries=3Dfalse -Dmess age.threshold=3D300 com.loopone.logrotator.LogRotator postgres 2411 0.0 0.1 24380 2256 ? S 02:38 0:00 /home/db-pri/PostgreSQL/bin/postmaster postgres 2412 0.0 0.9 211248 14200 ? S 02:38 0:00 /usr/local/jdk1.4.1/bin/java -Dlog.base.name=3D/home/db-pri/postgres/logs/db-p ri_dbtrans -Dsend.email=3Dfalse -Dsave.errors=3Dtrue -Dsave.queries=3Dfalse -Dmess age.threshold=3D300 com.loopone.logrotator.LogRotator postgres 2413 0.0 0.9 211248 14200 ? S 02:38 0:00 /usr/local/jdk1.4.1/bin/java -Dlog.base.name=3D/home/db-pri/postgres/logs/db-p ri_dbtrans -Dsend.email=3Dfalse -Dsave.errors=3Dtrue -Dsave.queries=3Dfalse -Dmess age.threshold=3D300 com.loopone.logrotator.LogRotator postgres 2414 0.0 0.9 211248 14200 ? S 02:38 0:00 /usr/local/jdk1.4.1/bin/java -Dlog.base.name=3D/home/db-pri/postgres/logs/db-p ri_dbtrans -Dsend.email=3Dfalse -Dsave.errors=3Dtrue -Dsave.queries=3Dfalse -Dmess age.threshold=3D300 com.loopone.logrotator.LogRotator postgres 2415 0.0 0.9 211248 14200 ? S 02:38 0:00 /usr/local/jdk1.4.1/bin/java -Dlog.base.name=3D/home/db-pri/postgres/logs/db-p ri_dbtrans -Dsend.email=3Dfalse -Dsave.errors=3Dtrue -Dsave.queries=3Dfalse -Dmess age.threshold=3D300 com.loopone.logrotator.LogRotator postgres 2416 0.0 0.2 25336 3216 ? S 02:38 0:01 postgres: stats buffer process postgres 2417 0.0 0.1 24508 2352 ? S 02:38 0:01 postgres: stats collector process postgres 11095 0.0 0.0 2508 1332 pts/1 S 13:46 0:00 -bash postgres 13028 0.0 0.1 2856 1712 pts/1 S 15:35 0:00 ssh aus-db-1 postgres 13032 0.0 0.0 2516 1340 pts/4 S 15:35=20=20 0:00 -bash postgres 13964 0.0 0.2 25144 4108 ? S 16:24=20=20 0:00 postgres: postgres dbtrans 10.1.1.130 idle postgres 13969 0.0 0.2 25144 4104 ? S 16:24 0:00 postgres: postgres dbtrans 10.1.1.130 idle postgres 13972 0.0 0.2 25144 4104 ? S 16:24 0:00 postgres: postgres dbtrans 10.1.1.130 idle postgres 13974 0.0 0.2 25124 4092 ? S 16:24 0:00 postgres: postgres dbtrans 10.1.1.130 idle postgres 13984 0.0 0.2 25144 4112 ? S 16:24 0:00 postgres: postgres dbtrans 10.1.1.130 idle postgres 14069 0.0 0.2 25124 4092 ? S 16:28 0:00 postgres: postgres dbtrans 10.1.1.130 idle postgres 14070 0.0 0.2 25124 4092 ? S 16:28 0:00 postgres: postgres dbtrans 10.1.1.130 idle postgres 14072 0.0 0.2 25124 4092 ? S 16:29 0:00 postgres: postgres dbtrans 10.1.1.130 idle postgres 14073 0.0 0.2 25124 4092 ? S 16:29 0:00 postgres: postgres dbtrans 10.1.1.130 idle postgres 14077 0.0 0.2 25124 4092 ? S 16:29 0:00 postgres: postgres dbtrans 10.1.1.130 idle postgres 14478 0.0 0.0 2520 1336 pts/3 S 17:08 0:00 -bash postgres 14665 0.0 0.0 2508 1328 pts/2 S 17:23 0:00 -bash postgres 14717 0.0 0.0 2844 912 pts/2 R 17:24 0:00 ps augxwww postgres 14718 0.0 0.0 1724 596 pts/2 S 17:24=20=20 0:00 egrep postgres|postmaster|PID [postgres@aus-db-1 postgres]$ psql -d template1 -c "select version()" version ------------------------------------------------------------- PostgreSQL 7.3.2 on i686-pc-linux-gnu, compiled by GCC 2.96 (1 row) [postgres@aus-db-1 postgres]$ uptime 5:25pm up 14:52, 4 users, load average: 0.02, 0.03, 0.00 [postgres@aus-db-1 postgres]$ df $PGDATA Filesystem 1k-blocks Used Available Use% Mounted on /dev/sdb6 15124868 2930408 11426156 21% /home/db-pri/postgres thanks, Mona ----- Original Message ----- From: "Ed L." To: "Mona Gamboa" Sent: Monday, February 17, 2003 4:00 PM Subject: Re: [ADMIN] please help--database just locks up. Can you post the output of these commands? uname -a export PGDATA=3D/path/to/your/data grep ^log_ $PGDATA/postgresql.conf cat $PGDATA/postmaster.pid ps augxwww | egrep 'postgres|postmaster|PID' psql -d template1 -c "select version()" uptime df $PGDATA Regards, Ed On Monday February 17 2003 3:16, you wrote: > we are running linux and postgres7.3.2 in a production environment. > > the database just 'locks ups.' if i try to get into psql X [where > X is my database or template 0 or template 1] it just sits there. > the log files don't say anything......there's no indication as to > what is happening. > > if i look at top it says 100% idle, and the postmaster is > supposedly still running, as i see it when i do a ps auuwx| grep > ^postgres.... > > can anybody please help me figure out how to find out what's > happening? > > thank you so much, > > Mona Gamboa From pgsql@bluepolka.net Tue Feb 18 01:25:10 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C68F9474E53 for ; Mon, 17 Feb 2003 20:25:10 -0500 (EST) Received: from mta2.adelphia.net (unknown [64.8.50.178]) by postgresql.org (Postfix) with ESMTP id 30DE8474E42 for ; Mon, 17 Feb 2003 20:25:10 -0500 (EST) Received: from bingo ([68.70.98.78]) by mta2.adelphia.net (InterMail vM.5.01.05.25 201-253-122-126-125-20021216) with ESMTP id <20030218012513.QMXZ16878.mta2.adelphia.net@bingo>; Mon, 17 Feb 2003 20:25:13 -0500 Content-Type: text/plain; charset="iso-8859-1" From: "Ed L." To: "Mona Gamboa" Subject: Re: please help--database just locks up. Date: Mon, 17 Feb 2003 18:25:48 -0700 User-Agent: KMail/1.4.3 References: <024b01c2d6d2$484c9590$08c809c0@Rendlesham> <200302171600.59127.pggeneral@bluepolka.net> <000901c2d6dc$a1edf170$08c809c0@Rendlesham> In-Reply-To: <000901c2d6dc$a1edf170$08c809c0@Rendlesham> Cc: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302171825.48076.pgsql@bluepolka.net> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/274 X-Sequence-Number: 7472 On Monday February 17 2003 4:31, Mona Gamboa wrote: > ok...here's the output.[kinda nasty to read] Nothing obvious to me. If it is reproduceable, you might try turning=20 on some of the lock tracing directives in postgresql.conf and/or=20 increasing the logging level. You might also try attaching to the=20 hung process in gdb to see where it is hanging, and post the=20 backtrace and see if anyone recognizes anything, e.g. gdb gdb> bt Ed