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