pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Nico <nicohmail-postgresql@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Open connections
Date: Tue, 28 Dec 2004 08:09:52 -0500
Message-ID: <41D15B20.5000409@fastcrypt.com> (raw)
In-Reply-To: <cqrgbc$2o55$1@news.hub.org>
References: <cqrgbc$2o55$1@news.hub.org>

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@postgresql.org so that your
>      message can get through to the mailing list cleanly
>
>
>  
>

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




view thread (10+ messages)  latest in thread

Message-ID: <41D15B20.5000409@fastcrypt.com>
Permalink:  ../41D15B20.5000409@fastcrypt.com/
Also on:    postgresql.org/message-id/41D15B20.5000409@fastcrypt.com

 · 

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: pg@fastcrypt.com, nicohmail-postgresql@yahoo.com
  Subject: Re: Open connections
  In-Reply-To: <41D15B20.5000409@fastcrypt.com>
  References: <cqrgbc$2o55$1@news.hub.org> <41D15B20.5000409@fastcrypt.com>

* 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