From shong_1@yahoo.com Mon Jul 19 16:39:04 2004 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E9663D1B1F8 for ; Mon, 19 Jul 2004 13:39:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58088-09 for ; Mon, 19 Jul 2004 16:39:04 +0000 (GMT) Received: from web40411.mail.yahoo.com (web40411.mail.yahoo.com [66.218.78.108]) by svr1.postgresql.org (Postfix) with SMTP id 38E61D1B1CD for ; Mon, 19 Jul 2004 13:39:02 -0300 (ADT) Message-ID: <20040719163859.1354.qmail@web40411.mail.yahoo.com> Received: from [65.92.115.133] by web40411.mail.yahoo.com via HTTP; Mon, 19 Jul 2004 12:38:59 EDT Date: Mon, 19 Jul 2004 12:38:59 -0400 (EDT) From: Roberto De Shong Subject: Can't increase max connections To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-616692360-1090255139=:544" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=HTML_MESSAGE, RCVD_IN_NJABL, RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/283 X-Sequence-Number: 14351 --0-616692360-1090255139=:544 Content-Type: text/plain; charset=us-ascii 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. --------------------------------- Post your free ad now! Yahoo! Canada Personals --0-616692360-1090255139=:544 Content-Type: text/html; charset=us-ascii
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.



Post your free ad now! Yahoo! Canada Personals
--0-616692360-1090255139=:544-- From peter_e@gmx.net Sun Jul 25 22:44:40 2004 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9E991D1B56F for ; Sun, 25 Jul 2004 19:44:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42393-06 for ; Sun, 25 Jul 2004 22:44:39 +0000 (GMT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id 37224D1B18C for ; Sun, 25 Jul 2004 19:44:35 -0300 (ADT) Received: (qmail 29712 invoked by uid 65534); 25 Jul 2004 22:44:38 -0000 Received: from dsl-213-023-255-116.arcor-ip.net (EHLO colt.pezone.net) (213.23.255.116) by mail.gmx.net (mp024) with SMTP; 26 Jul 2004 00:44:38 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: Roberto De Shong , pgsql-admin@postgresql.org Subject: Re: Can't increase max connections Date: Mon, 26 Jul 2004 00:44:37 +0200 User-Agent: KMail/1.5.1 References: <20040719163859.1354.qmail@web40411.mail.yahoo.com> In-Reply-To: <20040719163859.1354.qmail@web40411.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200407260044.37362.peter_e@gmx.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/286 X-Sequence-Number: 14354 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. You need to show the error message if you want relevant help. -- Peter Eisentraut http://developer.postgresql.org/~petere/ From mendola@bigfoot.com Sun Jul 25 23:03:39 2004 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1F5F3D1B2D9 for ; Sun, 25 Jul 2004 20:03:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48046-03 for ; Sun, 25 Jul 2004 23:03:38 +0000 (GMT) Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by svr1.postgresql.org (Postfix) with ESMTP id CCB95D1B1B4 for ; Sun, 25 Jul 2004 20:03:33 -0300 (ADT) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id i6PN3P203099; Mon, 26 Jul 2004 01:03:25 +0200 Received: from [127.0.0.1] (accesspoint.mm.eutelsat.org [194.214.173.4]) by nts-03.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id i6PN3YX04534; Mon, 26 Jul 2004 01:03:34 +0200 Message-ID: <41043C35.2080909@bigfoot.com> Date: Mon, 26 Jul 2004 01:03:17 +0200 From: Gaetano Mendola User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roberto De Shong , "pgsql-admin@postgresql.org" Subject: Re: Can't increase max connections References: <20040719163859.1354.qmail@web40411.mail.yahoo.com> In-Reply-To: <20040719163859.1354.qmail@web40411.mail.yahoo.com> X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/287 X-Sequence-Number: 14355 -----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----- From shong_1@yahoo.com Sun Jul 25 23:15:50 2004 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 99E03D1B74B for ; Sun, 25 Jul 2004 20:15:50 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53355-06 for ; Sun, 25 Jul 2004 23:15:43 +0000 (GMT) Received: from web40404.mail.yahoo.com (web40404.mail.yahoo.com [66.218.78.101]) by svr1.postgresql.org (Postfix) with SMTP id 00487D1B7C6 for ; Sun, 25 Jul 2004 20:15:14 -0300 (ADT) Message-ID: <20040725231508.45566.qmail@web40404.mail.yahoo.com> Received: from [65.95.48.213] by web40404.mail.yahoo.com via HTTP; Sun, 25 Jul 2004 19:15:08 EDT Date: Sun, 25 Jul 2004 19:15:08 -0400 (EDT) From: Roberto De Shong Subject: Re: Can't increase max connections To: Gaetano Mendola , "pgsql-admin@postgresql.org" In-Reply-To: <41043C35.2080909@bigfoot.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2023565098-1090797308=:45524" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.6 tagged_above=0.0 required=5.0 tests=HTML_20_30, HTML_MESSAGE, RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/289 X-Sequence-Number: 14357 --0-2023565098-1090797308=:45524 Content-Type: text/plain; charset=us-ascii 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 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 --0-2023565098-1090797308=:45524 Content-Type: text/html; charset=us-ascii
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
--0-2023565098-1090797308=:45524-- From mendola@bigfoot.com Mon Jul 26 00:16:32 2004 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0A01AD1B7B5 for ; Sun, 25 Jul 2004 21:16:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70576-09 for ; Mon, 26 Jul 2004 00:16:31 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 3D2FDD1B7A3 for ; Sun, 25 Jul 2004 21:16:27 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i6Q0GRqb049740 for ; Mon, 26 Jul 2004 00:16:27 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i6PNlvr9046031 for pgsql-admin@postgresql.org; Sun, 25 Jul 2004 23:47:57 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Can't increase max connections Date: Mon, 26 Jul 2004 01:47:45 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 36 Message-ID: <410446A1.4010000@bigfoot.com> References: <41043C35.2080909@bigfoot.com> <20040725231508.45566.qmail@web40404.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: Roberto De Shong User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en In-Reply-To: <20040725231508.45566.qmail@web40404.mail.yahoo.com> X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/290 X-Sequence-Number: 14358 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