From: Daniel Andersen <zedar@free2air.com.au>
To: pgsql-admin@postgresql.org
Subject: Re: Load problems...
Date: Wed, 19 Dec 2001 15:02:31 +1000
Message-ID: <E16GYiA-0001b0-00@corky.internettv.net.au> (raw)
In-Reply-To: <20011218203117.Q66402-100000@megazone23.bigpanda.com>
References: <20011218203117.Q66402-100000@megazone23.bigpanda.com>
> > Does postgresql have any problems managing load? I'm running a medium
> > sized (30k customers) ISP off a postgresql database but it can't seem to
> > manage very well with the dozen or so requests per second it receives.
> > The machine we are handling is plenty powerful enough for a database like
> > this (a dual 1ghz p3 machine with 1gb of ram) but for some reason it
> > never runs quite perfectly. 7.1.3 would overload the system rapidly and
> > slow to a crawl, so we installed 7.2b4 only to find it runs like a dream
> > (less that 10% cpu usage most of the time) but eventually fails to fork
> > and crashes and burns, at which point i have to restart it. Could anyone
> > shed any light on a possible solution to these problems?
>
> We're probably going to want to look for some more information. What does
> the log before failure look like? Are there any warning signs there
> (messages about running out of file descriptors, etc)? What do you have
> the memory settings (shared buffers, sort memory, etc) and max connections
> set to?
sort_mem = 1024
shared_buffers = 2048 (tried higher, but didnt' seem to improve anything)
max_connections = 300
error message just comes out of the blue, the database is chugging along
happily and then suddenly[4059] DEBUG: connection startup failed (fork
failure): Resource temporarily unavailable
[4059] DEBUG: connection startup failed (fork failure): Resource
temporarily unavailable
[4059] DEBUG: could not launch checkpoint process (fork failure): Resource
temporarily unavailable
[4059] DEBUG: connection startup failed (fork failure): Resource
temporarily unavailable
[4059] DEBUG: connection startup failed (fork failure): Resource
temporarily unavailable
etc etc etc
the database is still responsive up till this point, so i'm assuming there
are limitations somewhere that i'm not aware of...
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: zedar@free2air.com.au
Subject: Re: Load problems...
In-Reply-To: <E16GYiA-0001b0-00@corky.internettv.net.au>
References: <20011218203117.Q66402-100000@megazone23.bigpanda.com> <E16GYiA-0001b0-00@corky.internettv.net.au>
* 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