Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 1944 invoked from network); 3 Feb 2010 20:17:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2010 20:17:43 -0000 Received: (qmail 28161 invoked by uid 500); 3 Feb 2010 20:17:39 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 28092 invoked by uid 500); 3 Feb 2010 20:17:39 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 28081 invoked by uid 99); 3 Feb 2010 20:17:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 20:17:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex@j2anywhere.com designates 82.71.16.58 as permitted sender) Received: from [82.71.16.58] (HELO bumblebee.j2anywhere.com) (82.71.16.58) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 20:17:33 +0000 Received: from localhost (localhost [127.0.0.1]) by bumblebee.j2anywhere.com (Postfix) with ESMTP id 243576283FD; Wed, 3 Feb 2010 20:20:21 +0000 (GMT) X-Virus-Scanned: amavisd-new at j2anywhere.com Received: from bumblebee.j2anywhere.com ([127.0.0.1]) by localhost (bumblebee.j2anywhere.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lDK0BEmFdRvY; Wed, 3 Feb 2010 20:20:17 +0000 (GMT) Received: from polaris.home.j2anywhere.com (www.routerlogin.com [192.168.0.1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: alex) by bumblebee.j2anywhere.com (Postfix) with ESMTPSA id 840C86283F4; Wed, 3 Feb 2010 20:20:17 +0000 (GMT) Subject: Re: Active DataSource Connection count never decreasing with PostgreSQL Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Alexander Hartner In-Reply-To: <99C8B2929B39C24493377AC7A121E21F96C401DBB4@USEA-EXCH8.na.uis.unisys.com> Date: Wed, 3 Feb 2010 20:17:06 +0000 Cc: Tomcat Users List Content-Transfer-Encoding: quoted-printable Message-Id: <19F5222C-2A66-449C-BCE4-A605BDC6341E@j2anywhere.com> References: <4B68ABB4.6050308@christopherschultz.net> <99C8B2929B39C24493377AC7A121E21F96C401DBB4@USEA-EXCH8.na.uis.unisys.com> To: "Caldarale, Charles R" , Christopher Schultz X-Mailer: Apple Mail (2.1077) This is a little off topic, but I tried your suggestions. However there = doesn't seem to be an option to set the root application without = renaming the WAR to ROOT.war, or is there. I tried your suggestions as well as the suggestions from here: = http://mail-archives.apache.org/mod_mbox//tomcat-users/200902.mbox/%3C499F= E497.2000506@ice-sa.com%3E Besides the connection problems my configuration worked really well and = allowed me to configure all I needed in one file outside the WAR, as = well as set the application accessible on the root (/) path. I see that = using a separate file has it's merits in some cases, however right now I = can't get the application running on the / path without renaming it. = Don't really want to rename it as this only seems to work on Tomcat.=20 Ideally I would like to set the deployment path to / in = META-INF/context.xml but configure the database connection outside the = WAR to allow me to change between different database.=20 Any other suggestion on my Connection issue. I set the maxActive to 200 = and after a day ended up with 21 in numActive state. So by increasing my = upper limit I can increase the time between restarts. However this is = really just a hack until I figure this out. Thanks for all your suggestions. Regards Alex On 3 Feb 2010, at 00:15, Caldarale, Charles R wrote: >> From: Alexander Hartner [mailto:alex@j2anywhere.com] >> Subject: Re: Active DataSource Connection count never decreasing with >> PostgreSQL >>=20 >>> Put this into either META-INF/context.xml within your WAR/webapp >>> directory, or into CATALINA_BASE/Catalina/[hostname]/ROOT.xml >>>=20 >>> Remove the "path" and "docBase" attributes when you move the >>> element. >>=20 >> I really like it that way as it allows me to configure what I need to >> in one central place without having to touch or expand the WAR file. >=20 > And it breaks things. You are now getting double deployment, once = under the name AddressBookServer and once again as ROOT. Do it the = right way, by renaming your .war file to ROOT.war, and placing the = element in conf/Catalina/[host]/ROOT.xml - that also avoids = having to change the contents of the .war file. (Note that Chris' = suggesting was missing part of the path.) As Chris said, when you do = that, remove the path and docBase attributes. >=20 >> This also works great for me. My database folder is relative the the >> startup script. >=20 > That's really asking for trouble. A parser has complete freedom to = ignore any .. entry in a URL, so if it happens to be working now, you're = extremely lucky, and there's no guarantee it will work tomorrow. The = URL is *not* relative to any current directory, since it doesn't target = the file system per se. >=20 > - Chuck >=20 >=20 > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE = PROPRIETARY MATERIAL and is thus for use only by the intended recipient. = If you received this in error, please contact the sender and delete the = e-mail and its attachments from all computers. >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org