pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: paulo matadr <saddoness@yahoo.com.br>
Cc: GENERAL <pgsql-general@postgresql.org>
Cc: admin <pgsql-admin@postgresql.org>
Subject: Re: [GENERAL] MAX_CONNECTIONS ??
Date: Wed, 12 Nov 2008 17:41:06 +0000
Message-ID: <491B1532.10605@archonet.com> (raw)
In-Reply-To: <234747.33153.qm@web52501.mail.re2.yahoo.com>
References: <234747.33153.qm@web52501.mail.re2.yahoo.com>

paulo matadr wrote:
> I need help to alter max_connections em my database, this parameter
> stay in defalt MAX_CONNECTIONS=100
> I want to change for MAX_CONNECTIONS=300. about parameters below,
> need to change anything?
> 
> 1 -sysctl.conf
> 
> kernel.shmmax = 68719476736
> kernel.shmall = 4294967296

Does your shmmax have one digit too many? 68GB?

> # - Memory -
> 
> 2-Postgresql.conf
> shared_buffers = 2048MB                                          
> temp_buffers = 12MB                                                    
> work_mem = 12MB                     
> maintenance_work_mem = 128MB                          
> max_fsm_pages =   4000000                               
> max_fsm_relations = 5000            

Should be OK, depending on your work-load.

One question - what do you plan on doing with 300 active connections?
Unless you've got more than 100 processors in this machine you might
want to consider connection-pooling.

-- 
  Richard Huxton
  Archonet Ltd



view thread (2+ messages)

Message-ID: <491B1532.10605@archonet.com>
Permalink:  ../491B1532.10605@archonet.com/
Also on:    postgresql.org/message-id/491B1532.10605@archonet.com

 · 

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-admin@postgresql.org
  Cc: dev@archonet.com, saddoness@yahoo.com.br, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] MAX_CONNECTIONS ??
  In-Reply-To: <491B1532.10605@archonet.com>

* 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