pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #5756: postgres eat up all memory(2GB memory) 2+ messages / 2 participants [nested] [flat]
* BUG #5756: postgres eat up all memory(2GB memory) @ 2010-11-18 03:18 amos <amosleaf@gmail.com> 2010-11-18 07:37 ` Re: BUG #5756: postgres eat up all memory(2GB memory) Craig Ringer <craig@postnewspapers.com.au> 0 siblings, 1 reply; 2+ messages in thread From: amos @ 2010-11-18 03:18 UTC (permalink / raw) To: pgsql-bugs The following bug has been logged online: Bug reference: 5756 Logged by: amos Email address: amosleaf@gmail.com PostgreSQL version: 8.3 Operating system: windows server 2008 Description: postgres eat up all memory(2GB memory) Details: Hi: I am sorry for not good at english, so please be patient with what i write, I really need your help,thank you in advance. Current situration: (1)Our server use postgres8.3 database. (2)The server would receive 500-1500 http request, and for each request, server would operate the database once, so may it would use one database connection. (3)then I modify the configuration in "postgresql.conf". What I changed is: (1)max_connections = 2000 (2)shared_buffers = 32MB (3)statement_timeout = 1800000 //this is 30 minutes So the result is: when the server is working with more than 500 request, the postgres eat up the memory. BTW, our server is running java program, use a database pool whose name is "c3p0". So which configuration should I change to avoid this? Thanks again! ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #5756: postgres eat up all memory(2GB memory) 2010-11-18 03:18 BUG #5756: postgres eat up all memory(2GB memory) amos <amosleaf@gmail.com> @ 2010-11-18 07:37 ` Craig Ringer <craig@postnewspapers.com.au> 0 siblings, 0 replies; 2+ messages in thread From: Craig Ringer @ 2010-11-18 07:37 UTC (permalink / raw) To: amos <amosleaf@gmail.com>; +Cc: pgsql-bugs "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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2010-11-18 07:37 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2010-11-18 03:18 BUG #5756: postgres eat up all memory(2GB memory) amos <amosleaf@gmail.com> 2010-11-18 07:37 ` Craig Ringer <craig@postnewspapers.com.au>
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