Re: [GENERAL] MAX_CONNECTIONS ??

From: Richard Huxton <dev(at)archonet(dot)com>
To: paulo matadr <saddoness(at)yahoo(dot)com(dot)br>
Cc: GENERAL <pgsql-general(at)postgresql(dot)org>, admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: [GENERAL] MAX_CONNECTIONS ??
Date: 2008-11-12 17:41:06
Message-ID: 491B1532.10605@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message paulo matadr 2008-11-12 18:54:24 Res: [GENERAL] MAX_CONNECTIONS ??
Previous Message Richard Huxton 2008-11-12 17:36:45 Re: Upgrade in Place

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2008-11-12 17:46:36 Upgrading side by side in Gentoo
Previous Message Adriana Alfonzo 2008-11-12 17:37:24 Re: Upgrading side by side in Gentoo