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 4909B3ABFDF for ; Tue, 28 Dec 2004 14:03: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 52631-01 for ; Tue, 28 Dec 2004 14:02:54 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 14C7F3AC635 for ; Tue, 28 Dec 2004 14:02:58 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.13.1/8.13.1) with ESMTP id iBSE2qKb052807 for ; Tue, 28 Dec 2004 14:02:52 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.13.1/8.13.1/Submit) id iBSDX5Xk040256 for pgsql-jdbc@postgresql.org; Tue, 28 Dec 2004 13:33:05 GMT (envelope-from news) From: "Nico" X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: Open connections Date: Tue, 28 Dec 2004 14:33:08 +0100 Organization: Hub.Org Networking Services Lines: 51 Message-ID: References: <41D15B20.5000409@fastcrypt.com> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response To: pgsql-jdbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.721 tagged_above=0 required=5 tests=ALL_TRUSTED, AWL, FORGED_YAHOO_RCVD, PRIORITY_NO_NAME X-Spam-Level: X-Archive-Number: 200412/197 X-Sequence-Number: 11863 I forgot to mention one thing: I have no control over the server it's running on. I only have permission for my account. It is imperative that I can have 4 open connections with my database, since my servlet generates a framesetpage where each frame of the three frames is that same servlet with other parameters to connect to the same database. Most of the time it's not a problem, but when I get 3 or more visitors at the same time, my connections start to make trouble. Here is my website: http://www.haegenssites.com/servlet/menus.DBMenuShow?dbname=haegens_vva&menuid=311 "Dave Cramer" schreef in bericht news:41D15B20.5000409@fastcrypt.com... > 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 > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org >