From: jam3 <jamorton3@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: max_connections
Date: Wed, 5 Sep 2012 13:51:47 -0700 (PDT)
Message-ID: <1346878307201-5722899.post@n5.nabble.com> (raw)
In-Reply-To: <5A2F3971B58368408AB34903728E64E4DD371E@CORPUSMX30A.corp.emc.com>
References: <5A2F3971B58368408AB34903728E64E4DD371E@CORPUSMX30A.corp.emc.com>
According to
http://www.postgresql.org/docs/8.3/static/kernel-resources.html
The maximum shared memory usage of a connection in bytes is
1800 + 270 * max_locks_per_transaction
max_locks_per_transaction default is 64
19080 Bytes
or .018 mb's per connection
or
1.819 mb at 100 default connections
With a Gig of Phsical Ram setting Shared Buffers to use 25% - 256 mb
dedicated to Postgres
default is using roughly 0.75% for connections
You can extrapolate this out taking into consideration all your specific
variables, total physical RAM, postgresql.conf settings etc but I wouldn;t
run off to use pgpool unless your in an extremly connection heavy
environment as it does add an additional layer within the client server
connection and is another component to config and admin.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/max-connections-tp5722890p5722899.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.
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-general@postgresql.org
Cc: jamorton3@gmail.com
Subject: Re: max_connections
In-Reply-To: <1346878307201-5722899.post@n5.nabble.com>
References: <5A2F3971B58368408AB34903728E64E4DD371E@CORPUSMX30A.corp.emc.com> <1346878307201-5722899.post@n5.nabble.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