X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1E3743AC6F7 for ; Tue, 28 Dec 2004 13:10:04 +0000 (GMT) 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 29055-10 for ; Tue, 28 Dec 2004 13:09:53 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 21BB83AC287 for ; Tue, 28 Dec 2004 13:09:56 +0000 (GMT) Received: (qmail 19610 invoked from network); 28 Dec 2004 13:09:32 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 28 Dec 2004 13:09:32 -0000 Message-ID: <41D15B20.5000409@fastcrypt.com> Date: Tue, 28 Dec 2004 08:09:52 -0500 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: Postgres International User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nico Cc: pgsql-jdbc@postgresql.org Subject: Re: Open connections References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/194 X-Sequence-Number: 11860 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