Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc

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.


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?
>---------------------------(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
519 939 0336

In response to


pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group