Re: Open connections

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Nico <nicohmail-postgresql(at)yahoo(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Open connections
Date: 2004-12-28 13:09:52
Message-ID: 41D15B20.5000409@fastcrypt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Nico,

this is somewhat problematic, the only way to do this is to use the unix
tool ps to determine the number of processes.

A much better way to do this is to use a robust connection pool like
dbcp from apache, which will manage your connections for you.

Dave

Nico wrote:

>I would like to know how many connections are open at a certain time from a
>servlet, so I can anticipate connection errors. How do I do that?
>
>Nico.
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
>
>
>

--
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Guillaume Cottenceau 2004-12-28 13:19:04 Re: problem to get nextval of a sequence
Previous Message Dave Cramer 2004-12-28 13:08:27 Re: problem to get nextval of a sequence