pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory S. Williamson <gsw@globexplorer.com>
To: Javier Tesis Tolosa Trabajo <tesispostgres@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Sorry too many conecctions
Date: Wed, 21 Jul 2004 12:34:16 -0700
Message-ID: <71E37EF6B7DCC1499CEA0316A256832801057CC1@loki.wc.globexplorer.net> (raw)


In the root directory in which postgres stores the data is a file:

postgresql.conf

Edit the file with a text editor (vi / ed / etc.) and change :

max_connections = ###
to
max_connections = 1000
 (or more since other applications or a DBA may need to connect as well)

and also change 

shared_buffers = ###
 to be at least (max_connections * 2), so change this to at least 2000 for 1000 simulataneous connections. More connections use more shared memory so you want to have some limits to the total number.

Save the file changes.

Stop and restart the postgres instance (reload doesn't work for these settings).

Hope this helps,

Greg Williamson
DBA
GlobeXplorer LLC

-----Original Message-----
From:	Javier Tesis Tolosa Trabajo [mailto:tesispostgres@hotmail.com]
Sent:	Wed 7/21/2004 8:08 AM
To:	pgsql-sql@postgresql.org
Cc:	
Subject:	[SQL] Sorry too many conecctions
hi everybody
I speak english a little,Sorry.

I have A problem whith de connections from a Aplicatio Java, guive  me a 
Error "Sorry too many clients",I think what is becuase I don't close 
connecction to the DB postgresql, I do aprox. 1000 conecction into statement 
"while" What can Do?
thakns

_________________________________________________________________
Charla con tus amigos en lĂ­nea mediante MSN Messenger: 
http://messenger.latam.msn.com/


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster






view thread (2+ messages)

Message-ID: <71E37EF6B7DCC1499CEA0316A256832801057CC1@loki.wc.globexplorer.net>
Permalink:  ../71E37EF6B7DCC1499CEA0316A256832801057CC1@loki.wc.globexplorer.net/
Also on:    postgresql.org/message-id/71E37EF6B7DCC1499CEA0316A256832801057CC1@loki.wc.globexplorer.net

 · 

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-sql@postgresql.org
  Cc: gsw@globexplorer.com, tesispostgres@hotmail.com
  Subject: Re: Sorry too many conecctions
  In-Reply-To: <71E37EF6B7DCC1499CEA0316A256832801057CC1@loki.wc.globexplorer.net>
  References: <71E37EF6B7DCC1499CEA0316A256832801057CC1@loki.wc.globexplorer.net>

* 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