Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id B5AE463344F for ; Tue, 14 Apr 2009 04:59:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 00205-02 for ; Tue, 14 Apr 2009 04:59:06 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f167.google.com (mail-ew0-f167.google.com [209.85.219.167]) by mail.postgresql.org (Postfix) with ESMTP id 9F80E633037 for ; Tue, 14 Apr 2009 04:58:25 -0300 (ADT) Received: by ewy11 with SMTP id 11so3580889ewy.19 for ; Tue, 14 Apr 2009 00:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=PjYOpn1yoonCOpsalxSFYAnTVdnenVWKWOCLJnlNTF4=; b=Wu3BPT+A8b8vH8Q/vQudHyAsUtr8OLluivFKjl+XHqHrycaA+Adb9Ch6v3ZbG7YL2z YxAWLkhVS42PYoSHgs6ZK/xRC3Hvohlx27EiPG0xJ1HQabSncpEplF88TOeeFDvydFT5 3oX7Ylt2iTUoR2AmGwYdU+7ycCtRC+wT9u5eU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Qg0+1/6rVlR3wToMdrXExUANEj8x6kwWSJvIjIS71dJ8mLzYeaPo/qFVLH1ireyws3 jqZHDHsyleeEud6rECXciIQmaorqLJqbgck8f/vl6QLzAxXpVYw9yHvEAYZity3GIdRj vsEOxyqk3iErWkMm27t7juFM+aYkxkSsJbves= MIME-Version: 1.0 Received: by 10.210.53.5 with SMTP id b5mr76067eba.90.1239694142643; Tue, 14 Apr 2009 00:29:02 -0700 (PDT) In-Reply-To: <49E42C72.9070902@obviously.com> References: <49E42C72.9070902@obviously.com> Date: Tue, 14 Apr 2009 01:29:02 -0600 Message-ID: Subject: Re: Postgres entering zombie state once a week in production evnvironment From: Scott Marlowe To: Bryce Nesbitt Cc: pgsql-sql@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/70 X-Sequence-Number: 32416 On Tue, Apr 14, 2009 at 12:25 AM, Bryce Nesbitt wrot= e: > We have a medium scale installation of Postgres 8.3 that is freezing abou= t > once a week. =A0I'm looking for any hints on how to diagnose the situatio= n, as > nothing is logged. > > The system is matched pair of Sunfire servers, running Debian Etch with a > 2.6.18-6-amd64 kernel, PostgreSQL 8.3.4, and DRBD 8.0.13. > > During a failed state, pg_stat_activity will show hundreds of statements > pending. =A0query_start will show the statements arriving at a normal rat= e (a > few per second), but clearly they never complete. =A0The bulk of these > statement are a simple select that starts each web session, a statement t= hat > generally completes in tenths of milliseconds. =A0Restarting postgres res= tores > normal operation, at the loss of all chance of figuring out what was wron= g. What does pg_locks say during this time? Specifically about locks that aren't granted?