pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedParameters to consider on increasing max_connections and physical memory
2+ messages / 2 participants
[nested] [flat]
* Parameters to consider on increasing max_connections and physical memory
@ 2012-01-25 05:05 Gnanakumar <gnanam@zoniac.com>
0 siblings, 1 reply; 2+ messages in thread
From: Gnanakumar @ 2012-01-25 05:05 UTC (permalink / raw)
To: pgsql-admin
Hi,
Our Production server is running PostgreSQL v8.2.22 on CentOS5.2. Based on
the application usage trend, we're finding that we need to increase maximum
number of concurrent connections to the database server, that is
"max_connections" parameter. Of course, I also understand that it requires
more system physical memory.
My question is, what are all the PostgreSQL conf parameters that I must take
into account/consider to adjust/modify, if we increase system physical
memory and "max_connections"?
Regards,
Gnanam
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Parameters to consider on increasing max_connections and physical memory
@ 2012-01-25 09:06 Scott Marlowe <scott.marlowe@gmail.com>
parent: Gnanakumar <gnanam@zoniac.com>
0 siblings, 0 replies; 2+ messages in thread
From: Scott Marlowe @ 2012-01-25 09:06 UTC (permalink / raw)
To: gnanam@zoniac.com; +Cc: pgsql-admin
On Tue, Jan 24, 2012 at 10:05 PM, Gnanakumar <gnanam@zoniac.com> wrote:
> Hi,
>
> Our Production server is running PostgreSQL v8.2.22 on CentOS5.2. Based on
> the application usage trend, we're finding that we need to increase maximum
> number of concurrent connections to the database server, that is
> "max_connections" parameter. Of course, I also understand that it requires
> more system physical memory.
>
> My question is, what are all the PostgreSQL conf parameters that I must take
> into account/consider to adjust/modify, if we increase system physical
> memory and "max_connections"?
How high have you had to raise it? If you're heading in the direction
of 500 or more, consider using a connection pooler like pgbouncer.
Generally each new connection uses about 6Megs of memory from the
machine the db lives on. For performance tuning, look here:
http://wiki.postgresql.org/wiki/Performance_Optimization
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2012-01-25 09:06 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-01-25 05:05 Parameters to consider on increasing max_connections and physical memory Gnanakumar <gnanam@zoniac.com>
2012-01-25 09:06 ` Scott Marlowe <scott.marlowe@gmail.com>
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