pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Ho Fat Tsang <namiwf@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: PostgreSQL 8.0 occasionally slow down
Date: Thu, 28 Jun 2007 08:22:17 +0100
Message-ID: <468361A9.1040308@archonet.com> (raw)
In-Reply-To: <97e6e20f0706272354m5e42c91em177c8b80abb2ea52@mail.gmail.com>
References: <97e6e20f0706272354m5e42c91em177c8b80abb2ea52@mail.gmail.com>

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



view thread (18+ messages)  latest in thread

Message-ID: <468361A9.1040308@archonet.com>
Permalink:  ../468361A9.1040308@archonet.com/
Also on:    postgresql.org/message-id/468361A9.1040308@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: dev@archonet.com, namiwf@gmail.com
  Subject: Re: PostgreSQL 8.0 occasionally slow down
  In-Reply-To: <468361A9.1040308@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox