pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert M. Meyer <rmeyer@installs.com>
To: pgsql-admin@postgresql.org
Subject: Postgres performance slowly gets worse over a month
Date: 23 Jul 2002 13:59:58 -0400
Message-ID: <1027447198.25568.11.camel@skymaster> (raw)

I've been through the archives a lot, trying to figure this one out.

We are running Postgresql 7.2.1 on a RedHat 7.2 system with kernel
2.4.9-12smp on a two processor system.  What we have noticed is that
performance slowly gets worse over the course of a month to the point
that we have to pg_dump the databases, wipe the data dir, initdb and
restore the databases.  This takes as long as five hours (depending on
whether or not we remember to turn off 'fsync' during the pg_restore). 
After the restore, performance is again stellar.

Nightly, we're doing a 'vacuumdb -a -z' after stopping and restarting
the database.  The performance will get so bad after a month that we
start to see load spikes in excess of 30.  Normally, we don't see load
over 2.5 during the heaviest activity and generally less than 1.0 most
of the time.

We are using the database as part of a web application that is used
fairly intensively every day.  We are using persistant connections with
the web server that lives on another machine.  Apache's
MaxRequestsPerChild is set to 100 to prevent the things from growing to
insane sizes during the course of the day.

We build 7.2.1 from source using the config:
./configure --prefix=/usr/local/pgsql --enable-multibyte

Any insights would be most appreciated.

Thanks...

Bob
-- 
Robert M. Meyer
Sr. Network Administrator
DigiVision Satellite Services
14 Lafayette Sq, Ste 410
Buffalo, NY 14203-1904
(716)332-1451




view thread (31+ messages)  latest in thread

Message-ID: <1027447198.25568.11.camel@skymaster>
Permalink:  ../1027447198.25568.11.camel@skymaster/
Also on:    postgresql.org/message-id/1027447198.25568.11.camel@skymaster

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rmeyer@installs.com
  Subject: Re: Postgres performance slowly gets worse over a month
  In-Reply-To: <1027447198.25568.11.camel@skymaster>
  References: <1027447198.25568.11.camel@skymaster>

* 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