pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: CoL <col@mportal.hu>
To: pgsql-performance@postgresql.org
Subject: Re: The black art of postgresql.conf  tweaking
Date: Mon, 09 Aug 2004 13:16:03 +0200
Message-ID: <cf7mdu$28tn$1@news.hub.org> (raw)
In-Reply-To: <4110DA83.7020505@clockltd.com>
References: <4110DA83.7020505@clockltd.com>

hi,

Paul Serby wrote:

> Can anyone give a good reference site/book for getting the most out of 
> your postgres server.
> 
> All I can find is contradicting theories on how to work out your settings.
> 
> This is what I followed to setup our db server that serves our web 
> applications.
> 
> http://www.phpbuilder.com/columns/smith20010821.php3?page=2
> 
> We have a Dell Poweredge with the following spec.
> 
> CPU: Intel(R) Xeon(TM) CPU 3.06GHz (512 KB Cache)
> CPU: Intel(R) Xeon(TM) CPU 3.06GHz (512 KB Cache)
> CPU: Intel(R) Xeon(TM) CPU 3.06GHz (512 KB Cache)
> CPU: Intel(R) Xeon(TM) CPU 3.06GHz (512 KB Cache)
> Physical Memory: 2077264 kB
> Swap Memory: 2048244 kB
> 
> Apache on the Web server can take up to 300 connections and PHP is using 
>  pg_pconnect
> 
> Postgres is set with the following.
> 
> max_connections = 300
> shared_buffers = 38400
> sort_mem = 12000
> 
> But Apache is still maxing out the non-super user connection limit.
> 
> The machine is under no load and I would like to up the max_connections 
> but I would like to know more about what you need to consider before 
> doing so.

One more: In php.ini, set the pgsql.max_persistent lower then 300

; Maximum number of persistent links.  -1 means no limit.
pgsql.max_persistent = -1 -> change this

C.



view thread (14+ messages)  latest in thread

Message-ID: <cf7mdu$28tn$1@news.hub.org>
Permalink:  ../cf7mdu$28tn$1@news.hub.org/
Also on:    postgresql.org/message-id/cf7mdu$28tn$1@news.hub.org

 · 

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: col@mportal.hu
  Subject: Re: The black art of postgresql.conf  tweaking
  In-Reply-To: <cf7mdu$28tn$1@news.hub.org>

* 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