Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 12351 invoked from network); 14 Apr 2004 19:12:51 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Apr 2004 19:12:51 -0000 Received: (qmail 67510 invoked by uid 500); 14 Apr 2004 19:12:36 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 67495 invoked by uid 500); 14 Apr 2004 19:12:36 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 67478 invoked from network); 14 Apr 2004 19:12:35 -0000 Received: from unknown (HELO poros.telenet-ops.be) (195.130.132.44) by daedalus.apache.org with SMTP; 14 Apr 2004 19:12:35 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by poros.telenet-ops.be (Postfix) with SMTP id 0BC3F3681C6 for ; Wed, 14 Apr 2004 21:12:40 +0200 (MEST) Received: from pandora.be (D5E05F62.kabel.telenet.be [213.224.95.98]) by poros.telenet-ops.be (Postfix) with ESMTP id D5138369C36 for ; Wed, 14 Apr 2004 21:12:39 +0200 (MEST) Message-ID: <407D8D22.7010905@pandora.be> Date: Wed, 14 Apr 2004 21:12:34 +0200 From: Dirk Verbeeck User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [dbcp] How could I find out the application methods that hold the active connections? References: <14B8A075A9E35D40B58E5BB746D6C4403430BC@tlg-01.tlg.ca> In-Reply-To: <14B8A075A9E35D40B58E5BB746D6C4403430BC@tlg-01.tlg.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Try: catalina run >stdout.log 2>stderr.log Cheers Dirk Sheng Huang wrote: > Hi Dirk, > > Thank you very much for your reply. Now I understand the connections closed > in my configuration are active connections instead of inactive connections. > Although I see a lot of "DBCP object created was never > closed" followed by "Already closed" as I said in my first email, all > connections will become active after the application is used for some time > and then the application stalls (wait unlimited for available connections). > > There may be some defects in my code, thus the stacktrace for DBCP object > creation will be very helpful to me. Since I just installed Tomcat 4.1.18 > with the default configuration (standalone Tomcat instead of Tomcat and > Apache), I can't see the stderr messages logged somewhere and don't know how > to set it up. Could you give me some information on how to setup stderr > logging or redirect them to the standard catalina.out? Thank you very much. > > Best regards, > Sheng > > > > When you get a "DBCP object created..." message then there should also be a > stacktrace be written. With version 1.1 the message goes to stdout and the > stacktrace to stderr. In the nightly builds they go both go to stderr. > > The stacktrace displays the location where is abandoned connection was > borrowed. > > > The removeAbandoned parameter is for removing the active connections. > Idle connections are removed with "minEvictableIdleTimeMillis". > > -- Dirk > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org