X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F0CCED1B1CF for ; Wed, 21 Jul 2004 16:34:21 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 10292-08 for ; Wed, 21 Jul 2004 19:34:18 +0000 (GMT) Received: from loki.globexplorer.com (unknown [208.35.14.101]) by svr1.postgresql.org (Postfix) with ESMTP id ED672D1B1B3 for ; Wed, 21 Jul 2004 16:34:14 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: Sorry too many conecctions Date: Wed, 21 Jul 2004 12:34:16 -0700 Message-ID: <71E37EF6B7DCC1499CEA0316A256832801057CC1@loki.wc.globexplorer.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] Sorry too many conecctions Thread-Index: AcRvNOV+3C8NnLkLScuIUzTq5Oa4CQAI+QMK From: "Gregory S. Williamson" To: "Javier Tesis Tolosa Trabajo" , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/161 X-Sequence-Number: 18413 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 =3D ### to max_connections =3D 1000 (or more since other applications or a DBA may need to connect as well) and also change=20 shared_buffers =3D ### 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 setti= ngs). 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:=09 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=20 Error "Sorry too many clients",I think what is becuase I don't close=20 connecction to the DB postgresql, I do aprox. 1000 conecction into statemen= t=20 "while" What can Do? thakns _________________________________________________________________ Charla con tus amigos en l=EDnea mediante MSN Messenger:=20 http://messenger.latam.msn.com/ ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster