Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BBC7CC41B for ; Thu, 28 Jun 2012 20:34:16 +0000 (UTC) Received: (qmail 77525 invoked by uid 500); 28 Jun 2012 20:34:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 77460 invoked by uid 500); 28 Jun 2012 20:34:13 -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 77451 invoked by uid 99); 28 Jun 2012 20:34:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 20:34:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.219.55.137] (HELO mail.polydyne.com) (66.219.55.137) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 20:34:07 +0000 Received: from Unknown [10.1.1.19] by mail.polydyne.com - Websense Email Security (7.2.0); Thu, 28 Jun 2012 15:38:42 -0500 Received: from POSTOFFICE02.polydyne.com ([::1]) by POSTOFFICE02.polydyne.com ([::1]) with mapi id 14.01.0355.002; Thu, 28 Jun 2012 15:33:40 -0500 From: Jeffrey Janner To: 'Tomcat Users List' , "'chris@derham.me.uk'" Subject: RE: Tomcat 7.0.28 connection pool issue Thread-Topic: Tomcat 7.0.28 connection pool issue Thread-Index: AQHNVTx5530iIDkByUyG/a+c2GHPDpcQJxgAgAAKagCAAAJDAP//+l9Q Date: Thu, 28 Jun 2012 20:33:39 +0000 Message-ID: <7215BA462D00D343B2837F9113F0131F0109D8BBC1@POSTOFFICE02.polydyne.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.1.27] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SEF-7853D99-ADF1-478E-8894-213D316B8FFA: 1 X-SEF-Processed: 7_2_0_00504__2012_06_28_15_38_43 X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message-----=0D=0A> From: cjderham@gmail.com [mailto:cjderh= am@gmail.com] On Behalf Of chris=0D=0A> derham=0D=0A> Sent: Thursday, June = 28, 2012 10:47 AM=0D=0A> To: Tomcat Users List=0D=0A> Subject: Re: Tomcat 7= =2E0.28 connection pool issue=0D=0A>=20=0D=0A> On Thu, Jun 28, 2012 at 12:3= 8 PM, Yasser wrote:=0D=0A>=20=0D=0A> > Yes. It does s= how that maxactive has reached 100. I also use splunk=0D=0A> to=0D=0A> > ge= t the connection status at the oracle side.=0D=0A> > What I dont understand= is that Resin needs just 50 connections to=0D=0A> > handle the same load. = I am in the process of increasing the count to=0D=0A> > 300 and see if that= makes a difference. Oracle has the capacity to=0D=0A> > handle that many c= onnections.=0D=0A> >=0D=0A> > We hit an odd oracle exception that may be re= lated. Can't explain it=0D=0A> really well, but the essence of the bug in O= racle was that the=0D=0A> tnslistener's connection count wasn't updated "re= gularly enough" when=0D=0A> connections closed, so it could believe that th= e connection limit had=0D=0A> exceeded when the db instance was still happy= to accept more=0D=0A> connections.=0D=0A> As I recall this was a known Ora= cle issue, and was fixed by increasing=0D=0A> the acceptable connection cou= nt in Oracle. Can you provide the exact=0D=0A> exception from the logs that= you hit=3F=0D=0A=0D=0AChris, this is one of the reasons for using a pool. = Since the physical DB connection between Tomcat & Oracle is never actually= closed in a pool scenario, you don't run into this problem (unless, of cou= rse, you have some other app also connection to the DB and not using a conn= ection pool).=0D=0AIt's a function of how Oracle is designed, the Listener = adds one to the "open" count for each new connection, and then hands the co= nnection off to another process. At this point, the Listener no longer car= es about the connection, and is not involved in "closing" the connection. T= here is another Oracle process that periodically updates the Listener with = the actual current count of connections. I'm not sure what the "periodical= ly" is set to, something like 10/15 seconds. Think of it as analogous to th= e TIMED-WAIT status of TCP connections (something that also easy to get cau= ght up in without a connection pool).=0D=0A=0D=0AJeff=0D=0A=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=0D=0A=0D=0AConfident= iality Notice: This Transmission (including any attachments) may contain i= nformation that is privileged, confidential, and exempt from disclosure und= er applicable law. If the reader of this message is not the intended recip= ient you are hereby notified that any dissemination, distribution, or copyi= ng of this communication is strictly prohibited. =20=0D=0A=0D=0AIf you have= received this transmission in error, please immediately reply to the sende= r or telephone (512) 343-9100 and delete this transmission from your system= =2E=0D=0A --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org