pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Sistemasvi <sistemasvi@aerogal.com.ec>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgres Server collapse
Date: Mon, 27 Nov 2006 10:33:06 -0500
Message-ID: <3085BCC6-4EA6-4A7D-BCC8-4106735F5029@fastcrypt.com> (raw)
In-Reply-To: <002401c71237$92e23cf0$9f0a0a0a@aerogald.com>
References: <002401c71237$92e23cf0$9f0a0a0a@aerogald.com>

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:

> 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?
> I have already increased the number of connections to 800 in the  
> postgres and sysctl configuration file.
>
> My server is linux Red Hat and Postgres database V8
>
> Which can be the problem?.
>
>
> Carlos
>
>
>

view thread (8+ messages)  latest in thread

Message-ID: <3085BCC6-4EA6-4A7D-BCC8-4106735F5029@fastcrypt.com>
Permalink:  ../3085BCC6-4EA6-4A7D-BCC8-4106735F5029@fastcrypt.com/
Also on:    postgresql.org/message-id/3085BCC6-4EA6-4A7D-BCC8-4106735F5029@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, sistemasvi@aerogal.com.ec
  Subject: Re: Postgres Server collapse
  In-Reply-To: <3085BCC6-4EA6-4A7D-BCC8-4106735F5029@fastcrypt.com>
  References: <002401c71237$92e23cf0$9f0a0a0a@aerogald.com> <3085BCC6-4EA6-4A7D-BCC8-4106735F5029@fastcrypt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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