From: Roberto De Shong <shong_1@yahoo.com>
To: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Can't increase max connections
Date: Sun, 25 Jul 2004 19:15:08 -0400 (EDT)
Message-ID: <20040725231508.45566.qmail@web40404.mail.yahoo.com> (raw)
In-Reply-To: <41043C35.2080909@bigfoot.com>
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.
Gaetano Mendola <mendola@bigfoot.com> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Roberto De Shong wrote:
| I have installed PostgreSQL 7.3 on FreeBSD 4.10 Stable, and have been
| trying to increase the max connections. the most I'm able to is 40, if I
| increase it any higher I'm unable to start the database. Is there any
| tip, s hte any guide where I can get an idea of the other values to set
| in postgresql.conf for increasing max connections? I had also recompile
| the kernel and changed maxusers from 0 to 64. I'm not sure if increasing
| it even more would allow me increase connections. Would appreciate some
| help, thanks.
Most likely you are out of shared memory segments that you OS allow.
If you are on Linux try to pump-up shmmax and shmall
Regards
Gaetano Mendola
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBBDwz7UpzwH2SGd4RAmO7AJ4jqXpBjglSZuwn7e92wRS23sJR+QCgkpLE
vK2twgkJ8Wi80vM+5KzWymg=
=C9sb
-----END PGP SIGNATURE-----
Roberto De Shong
---------------------------------
Post your free ad now! Yahoo! Canada Personals
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: shong_1@yahoo.com, mendola@bigfoot.com
Subject: Re: Can't increase max connections
In-Reply-To: <20040725231508.45566.qmail@web40404.mail.yahoo.com>
References: <41043C35.2080909@bigfoot.com> <20040725231508.45566.qmail@web40404.mail.yahoo.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