Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 92AC464FFC4 for ; Tue, 4 Nov 2008 11:40:39 -0400 (AST) 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 35851-08 for ; Tue, 4 Nov 2008 11:40:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from viefep18-int.chello.at (viefep18-int.chello.at [213.46.255.22]) by mail.postgresql.org (Postfix) with ESMTP id 74F4B64FDFC for ; Tue, 4 Nov 2008 11:40:37 -0400 (AST) Received: from edge03.upc.biz ([192.168.13.238]) by viefep16-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20081104154033.XSLH2850.viefep16-int.chello.at@edge03.upc.biz>; Tue, 4 Nov 2008 16:40:33 +0100 Received: from [192.168.1.103] ([89.134.230.13]) by edge03.upc.biz with edge id b3gX1a0040Hzgy1033gYp6; Tue, 04 Nov 2008 16:40:33 +0100 X-SourceIP: 89.134.230.13 Message-ID: <49106CEE.7020204@shopzeus.com> Date: Tue, 04 Nov 2008 16:40:30 +0100 From: Laszlo Nagy User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Tom Lane , pgsql-admin@postgresql.org Subject: Re: rebellious postgres process References: <490FFCF4.2050500@shopzeus.com> <16117.1225804625@sss.pgh.pa.us> In-Reply-To: <16117.1225804625@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200811/23 X-Sequence-Number: 30677 Tom Lane wrote: > Laszlo Nagy writes: > >> The processi is using 100% CPU for 52 hours! Here it is: >> > > >> %ps axl | grep 677 >> 70 677 666 757 107 0 22396 5460 select Rs ?? 3144:50.88 >> postgres: stats collector process (postgres) >> > > Huh, that's weird. We've fixed some bugs in the past that led the stats > collector to consume excessive CPU --- but that was all pre-8.3. > My version is 8.3.3. Complied from FreeBSD ports. I just updated my ports tree and that is the most up to date officially (sup)ported version. The process is still running: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 904 pgsql 1 105 0 22396K 5428K CPU1 1 856:13 99.02% postgres > Do you have a whole lot of tables in this database? One database has 140 tables, the other has 62. (There are two other database instances but they are rarely used.) > (Or even more directly: how large is $PGDATA/global/pgstat.stat ?) > -rw------- 1 pgsql pgsql 54536 Nov 3 20:11 pgstat.stat Thanks, Laszlo