pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Andersen <zedar@free2air.com.au>
To: C. Bensend <benny@bennyvision.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Load problems...
Date: Wed, 19 Dec 2001 15:10:08 +1000
Message-ID: <E16GYpW-00020e-00@corky.internettv.net.au> (raw)
In-Reply-To: <Pine.BSO.4.33L2.0112182237520.24317-100000@fusion.bennyvision.com>
References: <Pine.BSO.4.33L2.0112182237520.24317-100000@fusion.bennyvision.com>

> Hello Daniel,
>
> 	I can't answer your specific question, but I _can_
> tell you that the gurus will probably need more information
> that you presented.
>
> 1)  What operating system and version?
Slackware linux 8.0, with the kernel upgraded to 2.4.16, stripped to the bare 
bones for efficiency

> 2)  Have you tuned your OS, or is it a stock installation?
see above

> 3)  "running a medium sized (30k customers) ISP off a postgresql
>     database"  ??  Ie, you're authenticating users via PostgreSQL?
>     You're serving them webmail via PostgreSQL?  You're sniffing
>     their network traffic and stuffing it into PostgreSQL?  ;)
>     You get the idea.
Radius authentication, email authentication, customers checking their 
downloads, and a banner system (we're a free isp), so probably a bit heavier 
than the figures may have suggested...

> 4)  You mention that 7.2b4 runs better than before, but still
>     ends up with fork errors.  Exact error message?  How many
>     PostgreSQL processes are running when this happens?  Does
>     the user that PostgreSQL is running under have resource
>     limits?  Are they too low?  Is this server also their STMP
>     host, along with HTTP, HTTPS, FTP .. etc?  If you're
>     getting fork errors, you have too many processes running,
>     most likely.  Are your processes closing the database
>     connection when they're done with it?

[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 ad nauseum
there are generally up to 200 copies of postmaster running at any given time, 
but there aren't any limits imposed upon the postgres user.
The server is purely for the database and radius (which doesn't use up enough 
cpu to matter)
The connections are mostly coming in via the teapop mail server, which closes 
the connection when done, and php scripts, which are (at least theoretically) 
using persistent connections. Radius just opens a couple of connections and 
uses those exclusively.

>
> You see what I'm getting at.  :)  There are simply too many
> variables without more details.
>
> Benny



view thread (10+ messages)  latest in thread

Message-ID: <E16GYpW-00020e-00@corky.internettv.net.au>
Permalink:  ../E16GYpW-00020e-00@corky.internettv.net.au/
Also on:    postgresql.org/message-id/E16GYpW-00020e-00@corky.internettv.net.au

 · 

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: zedar@free2air.com.au, benny@bennyvision.com
  Subject: Re: Load problems...
  In-Reply-To: <E16GYpW-00020e-00@corky.internettv.net.au>
  References: <Pine.BSO.4.33L2.0112182237520.24317-100000@fusion.bennyvision.com> <E16GYpW-00020e-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