Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 203619FA430 for ; Tue, 28 Nov 2006 05:42:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 55263-01 for ; Tue, 28 Nov 2006 05:42:37 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by postgresql.org (Postfix) with ESMTP id A89C09FB24B for ; Tue, 28 Nov 2006 05:42:37 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id b2so2374643nfe for ; Tue, 28 Nov 2006 01:42:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ayjn75M+UnEWQIMZ4BSsxrnnaG8Y//V+8E+j1aazjFeHofDiPrICc2xZ8zST87hCvXKpW8cHBNB1XW7t2qT1JStLKCVHw5RQ+V41iwRO3dpMjFb/D+jH+cU78k0zDUxd2mHqpMU3vrcRW4peci3kGplr37F67fUzgnykR2YnrdU= Received: by 10.82.126.5 with SMTP id y5mr124887buc.1164706954712; Tue, 28 Nov 2006 01:42:34 -0800 (PST) Received: by 10.82.161.3 with HTTP; Tue, 28 Nov 2006 01:42:34 -0800 (PST) Message-ID: <1f30b80c0611280142p1ad554e0j18cc72f1a2e55810@mail.gmail.com> Date: Tue, 28 Nov 2006 14:42:34 +0500 From: imad To: "Michael Paesold" Subject: Re: Postgres Server collapse Cc: Sistemasvi , pgsql-jdbc@postgresql.org In-Reply-To: <456C024C.6000009@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <002401c71237$92e23cf0$9f0a0a0a@aerogald.com> <1f30b80c0611271026g1b2fcbaeic4fd61c7ee09e5f9@mail.gmail.com> <456C024C.6000009@gmx.at> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/156 X-Sequence-Number: 16198 Ok sorry. I missed that "session" thing. --Imad www.EnterpriseDB.com On 11/28/06, Michael Paesold wrote: > 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 hi= gh > >> traffic (about 10 AM) when the database server collapse. The server > >> turn too > >> slow as It haven=B4t 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 connectio= ns > > 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 > >