pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paesold <mpaesold@gmx.at>
To: imad <immaad@gmail.com>
Cc: Sistemasvi <sistemasvi@aerogal.com.ec>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgres Server collapse
Date: Tue, 28 Nov 2006 10:33:00 +0100
Message-ID: <456C024C.6000009@gmx.at> (raw)
In-Reply-To: <1f30b80c0611271026g1b2fcbaeic4fd61c7ee09e5f9@mail.gmail.com>
References: <002401c71237$92e23cf0$9f0a0a0a@aerogald.com>
	<1f30b80c0611271026g1b2fcbaeic4fd61c7ee09e5f9@mail.gmail.com>

imad schrieb:
> On 11/27/06, Sistemasvi <sistemasvi@aerogal.com.ec> 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




view thread (8+ messages)  latest in thread

Message-ID: <456C024C.6000009@gmx.at>
Permalink:  ../456C024C.6000009@gmx.at/
Also on:    postgresql.org/message-id/456C024C.6000009@gmx.at

 · 

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: mpaesold@gmx.at, immaad@gmail.com, sistemasvi@aerogal.com.ec
  Subject: Re: Postgres Server collapse
  In-Reply-To: <456C024C.6000009@gmx.at>
  References: <002401c71237$92e23cf0$9f0a0a0a@aerogald.com> <1f30b80c0611271026g1b2fcbaeic4fd61c7ee09e5f9@mail.gmail.com> <456C024C.6000009@gmx.at>

* 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