Received: from corky.internettv.net.au ([203.220.16.103]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBJ4qcm39479 for ; Tue, 18 Dec 2001 23:52:39 -0500 (EST) (envelope-from zedar@free2air.com.au) Received: from us.internettv.net.au ([203.134.187.234] helo=there) by corky.internettv.net.au with smtp (Exim 3.33 #13) id 16GYiA-0001b0-00 for pgsql-admin@postgresql.org; Wed, 19 Dec 2001 14:52:10 +1000 Content-Type: text/plain; charset="iso-8859-1" From: Daniel Andersen To: pgsql-admin@postgresql.org Subject: Re: Load problems... Date: Wed, 19 Dec 2001 15:02:31 +1000 X-Mailer: KMail [version 1.3.2] References: <20011218203117.Q66402-100000@megazone23.bigpanda.com> In-Reply-To: <20011218203117.Q66402-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: X-Archive-Number: 200112/120 X-Sequence-Number: 2843 > > 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...