Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 3975D9FB209 for ; Mon, 27 Nov 2006 11:33:05 -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 05753-05 for ; Mon, 27 Nov 2006 11:32:50 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 132699FA23F for ; Mon, 27 Nov 2006 11:32:55 -0400 (AST) Received: (qmail 19779 invoked from network); 27 Nov 2006 15:32:54 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 27 Nov 2006 15:32:54 -0000 In-Reply-To: <002401c71237$92e23cf0$9f0a0a0a@aerogald.com> References: <002401c71237$92e23cf0$9f0a0a0a@aerogald.com> Mime-Version: 1.0 (Apple Message framework v752.3) X-Priority: 3 Content-Type: multipart/alternative; boundary=Apple-Mail-19--496690530 Message-Id: <3085BCC6-4EA6-4A7D-BCC8-4106735F5029@fastcrypt.com> Cc: From: Dave Cramer Subject: Re: Postgres Server collapse Date: Mon, 27 Nov 2006 10:33:06 -0500 To: Sistemasvi X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/141 X-Sequence-Number: 16183 --Apple-Mail-19--496690530 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Carlos, You should be using a connection pool, if you don't have the memory =20 to support 800 connections then it just isn't going to work. Dave On 27-Nov-06, at 10:19 AM, Sistemasvi wrote: > Hello. > > I have a postsgresql database with max 500 connections. All =20 > development is in Java (View, Model, controller model). The problem =20= > is when I have high traffic (about 10 AM) when the database server =20 > collapse. The server turn too slow as It haven=B4t memory and the =20 > swap memory increase too much. I must kill all postgres connections =20= > and restart postmaster service. > > I have only one connection by web session. It is good or bad? > I have already increased the number of connections to 800 in the =20 > postgres and sysctl configuration file. > > My server is linux Red Hat and Postgres database V8 > > Which can be the problem?. > > > Carlos > > > --Apple-Mail-19--496690530 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Carlos,

You should be using a = connection pool, if you don't have the memory to support 800 connections = then it just isn't going to work.

Dave
On = 27-Nov-06, at 10:19 AM, Sistemasvi wrote:

=A0
=A0
I have only one connection by web session. It is good = or bad?
=A0
My server is linux Red Hat and Postgres database = V8
=A0
=A0
=A0
=A0
=A0


= --Apple-Mail-19--496690530--