pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: Roberto De Shong <shong_1@yahoo.com>
Subject: Re: Can't increase max connections
Date: Mon, 26 Jul 2004 01:47:45 +0200
Message-ID: <410446A1.4010000@bigfoot.com> (raw)
In-Reply-To: <20040725231508.45566.qmail@web40404.mail.yahoo.com>
References: <41043C35.2080909@bigfoot.com>
	<20040725231508.45566.qmail@web40404.mail.yahoo.com>

Roberto De Shong wrote:

 > Actually I got it solved, I recompiled the kernel adding the options below:
 > options        SYSVSHM
 > options        SYSVSEM
 > options        SYSVMSG
 > options        SHMMAXPGS=65536
 > options        SEMMNI=40
 > options        SEMMNS=240
 > options        SEMUME=40
 > options        SEMMNU=120
 >
 > And I made the following modifications to postgresql.conf:
 >
 > shared_buffers = 4096
 > max_fsm_relations = 1024
 > max_fsm_pages = 16384
 > sort_mem = 4096
 >
 > I was tthen able to increase it, I only set maxconnections to 200,
 > because I'm using database pooling to manage connections which I'm only
 > using 80 connections max.
 >
 > Thanks.

So if you need 80 connections why did you use 200 on the postgres side ?
You waste shared memory if you have 120 connections more then necessary.

Are you using pgpoll ?


Regards
Gaetano Mendola






view thread (5+ messages)

Message-ID: <410446A1.4010000@bigfoot.com>
Permalink:  ../410446A1.4010000@bigfoot.com/
Also on:    postgresql.org/message-id/410446A1.4010000@bigfoot.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 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: mendola@bigfoot.com, shong_1@yahoo.com
  Subject: Re: Can't increase max connections
  In-Reply-To: <410446A1.4010000@bigfoot.com>
  References: <41043C35.2080909@bigfoot.com> <20040725231508.45566.qmail@web40404.mail.yahoo.com> <410446A1.4010000@bigfoot.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