Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B246E1337B58 for ; Wed, 17 Nov 2010 23:18:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 69862-02 for ; Thu, 18 Nov 2010 03:18:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id C773A1337B4F for ; Wed, 17 Nov 2010 23:18:57 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id oAI3IvuK047317 for ; Thu, 18 Nov 2010 03:18:57 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id oAI3IvTE047316; Thu, 18 Nov 2010 03:18:57 GMT (envelope-from www) Date: Thu, 18 Nov 2010 03:18:57 GMT Message-Id: <201011180318.oAI3IvTE047316@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5756: postgres eat up all memory(2GB memory) From: "amos" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201011/125 X-Sequence-Number: 28705 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!