Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 8C2ED9FC0B9 for ; Thu, 28 Jun 2007 04:23:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 73282-06 for ; Thu, 28 Jun 2007 04:23:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id 192599FC0BA for ; Thu, 28 Jun 2007 04:23:21 -0300 (ADT) Received: from server3.office.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 7CEEB7360A; Thu, 28 Jun 2007 08:22:18 +0100 (BST) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 1F5D62740E6; Thu, 28 Jun 2007 08:22:25 +0100 (BST) Message-ID: <468361A9.1040308@archonet.com> Date: Thu, 28 Jun 2007 08:22:17 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Ho Fat Tsang Cc: pgsql-performance@postgresql.org Subject: Re: PostgreSQL 8.0 occasionally slow down References: <97e6e20f0706272354m5e42c91em177c8b80abb2ea52@mail.gmail.com> In-Reply-To: <97e6e20f0706272354m5e42c91em177c8b80abb2ea52@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/622 X-Sequence-Number: 25655 Ho Fat Tsang wrote: > > I am new for postgresql server. And now i work on a projects which > requires postgreSQL 8.0 and Java. I don't know why the server occasionally > slow down a bit for every 3 minutes. > Do anyone can help me about this ? or any resolution for a sudden > performance degrade ( because the application i need to develop is quite > time-critical). It's probably checkpointing. PG will write updates to the transaction log (WAL) immediately and update the main data files later. Every so often it makes sure the data files are up-to-date and this is called checkpointing. You want checkpointing to happen more often, not less. That way the load will be less each time it happens. See the manual for details. -- Richard Huxton Archonet Ltd