Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 39993 invoked from network); 27 Oct 2009 19:04:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Oct 2009 19:04:54 -0000 Received: (qmail 41903 invoked by uid 500); 27 Oct 2009 19:04:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 41818 invoked by uid 500); 27 Oct 2009 19:04:50 -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 41804 invoked by uid 99); 27 Oct 2009 19:04:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 19:04:50 +0000 X-ASF-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of billdsd@gmail.com designates 216.239.58.191 as permitted sender) Received: from [216.239.58.191] (HELO gv-out-0910.google.com) (216.239.58.191) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 19:04:47 +0000 Received: by gv-out-0910.google.com with SMTP id n29so8153gve.39 for ; Tue, 27 Oct 2009 12:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=dHZX99GYaPXgZlzdiCmoET5+I1DOfuyg25ifSDugv6U=; b=DtBJsIoAqqAKvrYCvg1RWoJo/NX7VAA/uxGLoC9T1WY3NHYrkOvau+WkuYE2uEeiIg oMZybkw+DRQEMetq35IOahYJw5d1SppMotYxzKsNXlFiJiHV6O1tjLVDPQ8g0EAOOie6 7E9RXRPeCaq5M/j3WjkYTGZu7soQmecOpNNJg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=FmyZ0n2shn4XYifcXafWDSekUPVet6WihlsUBtQ7i+te7uUDVUVNnrftcMn+4Q4o9i TEdukAYcsGdwxrp/+WRPcopKJpEQa3cmk2k0GnxlFkeBLGN4f1oBOY97HZRWRYvZ6fEO qYU49uzhPbDr/HY6ZDhIKLetxuOobtY5Xk+h4= Received: by 10.103.125.37 with SMTP id c37mr1576851mun.69.1256670265924; Tue, 27 Oct 2009 12:04:25 -0700 (PDT) Received: from ?192.168.1.8? (wsip-68-105-254-142.sd.sd.cox.net [68.105.254.142]) by mx.google.com with ESMTPS id y6sm695367mug.40.2009.10.27.12.04.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 12:04:24 -0700 (PDT) Message-ID: <4AE7443A.7000701@gmail.com> Date: Tue, 27 Oct 2009 12:04:26 -0700 From: Bill Davidson User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: DBCP woes (running out of cursors). References: <4AD615CD.1050005@gmail.com> <4AD88C61.2090700@christopherschultz.net> <4AD8D930.50502@gmail.com> <4AD8E300.5020006@gmail.com> <4AD8E75A.8040503@gmail.com> <4ADC7B07.3070701@christopherschultz.net> <4ADCBAB1.2000006@gmail.com> <4ADCBE1A.30003@christopherschultz.net> <4AE5F208.9030607@gmail.com> <4AE6005F.7090901@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Elli Albek wrote: >2. If your JDBC driver supports caching of prepared statements and >metadata, do it in the driver and disable this in DBCP. IMO DBCP does >a poor job at best in caching. We use mysql and its JDBC driver is >doing an excellent job. It didn't occur to me that that was available. >3. Your JDBC driver may already be caching metadata that DBCP is >caching. In this case you are caching the same data twice. Make sure >it dose not happen, it is a big memory overload on the JVM. Interesting. I need to do more research. >B. Avoid hot deployment of apps by shutting down tomcat before >updates. This is safer, but also not 100% clean. We're actually doing that already, but for other reasons. We currently have different servers for different parts of the world and schedule down time for off-peak periods for the regions they serve. Thanks for the info. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org