From: Craig Ringer <craig@postnewspapers.com.au>
To: amos <amosleaf@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5756: postgres eat up all memory(2GB memory)
Date: Thu, 18 Nov 2010 15:37:51 +0800
Message-ID: <4CE4D7CF.3010200@postnewspapers.com.au> (raw)
In-Reply-To: <201011180318.oAI3IvTE047316@wwwmaster.postgresql.org>
References: <201011180318.oAI3IvTE047316@wwwmaster.postgresql.org>
"Amos"
This is not a bug. Your PostgreSQL install is misconfigured - you have
told it to use more memory than you have. Use a reasonable number of
max_connections, maybe as few as 20 or 30, and set c3p0 (your connection
pooler) to use one or two fewer than that. Your webapp's clients should
share the connections, and you should get MUCH, MUCH better results that
way, because your machine will spend less time thrashing and more time
getting real work done.
Feel free to ask for help on the postgresql-general mailing list if you
want further assistance.
http://www.postgresql.org/community/lists/http://archives.postgresql.org/pgsql-general/
--
System & Network Administrator
POST Newspapers
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-bugs@postgresql.org
Cc: craig@postnewspapers.com.au, amosleaf@gmail.com
Subject: Re: BUG #5756: postgres eat up all memory(2GB memory)
In-Reply-To: <4CE4D7CF.3010200@postnewspapers.com.au>
References: <201011180318.oAI3IvTE047316@wwwmaster.postgresql.org> <4CE4D7CF.3010200@postnewspapers.com.au>
* 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