Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 601789FB24B for ; Tue, 28 Nov 2006 05:33:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 73858-08 for ; Tue, 28 Nov 2006 05:33:10 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 0BBCE9FA430 for ; Tue, 28 Nov 2006 05:33:13 -0400 (AST) Received: (qmail invoked by alias); 28 Nov 2006 09:33:11 -0000 Received: from office01.emerion.com (EHLO [127.0.0.1]) [83.64.50.26] by mail.gmx.net (mp005) with SMTP; 28 Nov 2006 10:33:11 +0100 X-Authenticated: #1946847 Message-ID: <456C024C.6000009@gmx.at> Date: Tue, 28 Nov 2006 10:33:00 +0100 From: Michael Paesold User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: imad CC: Sistemasvi , pgsql-jdbc@postgresql.org Subject: Re: Postgres Server collapse References: <002401c71237$92e23cf0$9f0a0a0a@aerogald.com> <1f30b80c0611271026g1b2fcbaeic4fd61c7ee09e5f9@mail.gmail.com> In-Reply-To: <1f30b80c0611271026g1b2fcbaeic4fd61c7ee09e5f9@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/155 X-Sequence-Number: 16197 imad schrieb: > On 11/27/06, Sistemasvi wrote: >> >> >> Hello. >> >> I have a postsgresql database with max 500 connections. All >> development is >> in Java (View, Model, controller model). The problem is when I have high >> traffic (about 10 AM) when the database server collapse. The server >> turn too >> slow as It haven“t memory and the swap memory increase too much. I >> must kill >> all postgres connections and restart postmaster service. >> >> I have only one connection by web session. It is good or bad? > > One connection only? Then why did you increased the number of connections > to 800? Sorry, I might be missing some point here. Strip "only" to understand the sentence. ;-) Carlos has one open DB connection for each open "web" (i.e. Webbrowser) session, which means that there are way too many connections open for a great number of currently waiting sessions. A connection pool should alleviate the problems. Best Regards Michael Paesold