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 4C2304024 for ; Thu, 19 May 2011 19:14:41 +0000 (UTC) Received: (qmail 57823 invoked by uid 500); 19 May 2011 19:14:37 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 57766 invoked by uid 500); 19 May 2011 19:14:37 -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 57757 invoked by uid 99); 19 May 2011 19:14:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 19:14:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hilavalensia@gmail.com designates 209.85.161.45 as permitted sender) Received: from [209.85.161.45] (HELO mail-fx0-f45.google.com) (209.85.161.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 19:14:29 +0000 Received: by fxm2 with SMTP id 2so3021025fxm.18 for ; Thu, 19 May 2011 12:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=TKNSlAI0JbNCRYjLExJHg9f8YhHacHwXXLlEgn+1b2E=; b=NzrQo4E3mLSOQ98Lmg14kuiwpguoKvDytvX7LeRwsjkpVZUfLrxLDuk3nGk6SFXUVg Cg8vu3MWhcyMHxhQTJPYvCUuoncr+bKKrsheiOId+YD1FZwtbf6NLX5gVe2AsHOcdDVa lIspbvOqnyF7k/0FESGrK+i/hx1wyMB/CHA/8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=MulFFjuoHlVmGj8lmXmGzpf5J3XyeK/C7OfAz6EZlDUr8G3UlfEIIcOD/OS+Rskgqo 3pNu6Fy4fkLHTxJy/QkP8i6iOlRAE3F3lv+iFFTtX9lkAJ5gfOC9guU/+js5UIOQ4wps /53hImlxbJEyuV9NuiWELtgnfHLGD0eVMJCj4= Received: by 10.204.19.19 with SMTP id y19mr3151306bka.164.1305832449164; Thu, 19 May 2011 12:14:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.39.134 with HTTP; Thu, 19 May 2011 12:13:49 -0700 (PDT) In-Reply-To: <4DD4C6F6.1050205@ice-sa.com> References: <4DD28179.8030203@ice-sa.com> <4DD2E14C.7080005@ice-sa.com> <4DD3EACD.4080003@christopherschultz.net> <4DD4C6F6.1050205@ice-sa.com> From: =?UTF-8?B?15TXmdec15Q=?= Date: Thu, 19 May 2011 22:13:49 +0300 Message-ID: Subject: Re: Application crash after Migrate to different ESX To: Tomcat Users List Content-Type: multipart/alternative; boundary=000325554c8e44c78e04a3a5cfef X-Virus-Checked: Checked by ClamAV on apache.org --000325554c8e44c78e04a3a5cfef Content-Type: text/plain; charset=ISO-8859-1 Yes, but did you actually ever bother to read its documentation, e.g. at http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html ? > (particularly starting with the attribute "testOnBorrow") > > I do not know much about these things, but just entering > ""org.apache.tomcat.jdbc.pool" in Google, and reading that documentation > leads me to believe : > - that there are N database connections in the pool > - that they can be checked regularly in the background for validity, > - that a non-valid connection automatically gets dropped from the pool, and > replaced by a new one when needed > - that you can pretty much set any aspect of that mechanism by those > attributes > - and that you can log what happens > Yes, I've read the documentation. connections can be checked - yes, I know, this is the validation string I can add in the xml file, but as I said - It has affected our production environment when using it (although we used it at the time with the dbcp pool and not the JDBC pool), so I prefer not to go there. log- I have written down the log I get in my initial post. > > So, if you are using that pool, I basically do not understand why you would > need any additional mechanism to overcome the loss of a db connection when > your VM is migrated. > Particularly that "smart keep alive" you keep talking about, but never > telling us where it comes from and where it is inserted in that > architecture. > > I don't understand on what mechanism are you talking about. I don't want to add anything (unless it can fix the problem) I just stated the problem, and the environment we have (win 2008, tomcat 6.0.29, jdbc pool.. These are the dry facts) The keep alive is an xslt file which contains actions to perform on the DB to check that everything is alive. if so, it returns an OK response, which can be viewed in HTML file on IE browser. The Load balancer samples the keep alive every 10 seconds to check the OK state. if it's not OK for 3 times in a row- the LB takes it out from the servers' pool and no one else can connect to it. so yes. we need this keep alive and can't dismiss it, because it's the indication that the server is functioning properly. and if it's not function - The LB can identify it and remove the server from the servers' pool so no one will try and approach it. > > >> we use the JTDS driver (I tried the Microsoft JDBC, but its performance is >> poor compared to the JTDS driver of sourceforge) >> Someone in my company suggested that the problem can rely in either of >> these >> JARs. >> so I will check with the tomcat-dbcp.jar as scenario 1, sql-jdbc.jar as >> scenario2, and maybe both combined as scenario 3. >> scenario 4 will be testing the behavior while validation is configured. >> >> > Sure, add some extra variables to the problem. That will make it a lot > simpler to find out what happens. > > no need of sarcasm here. these aren't additional variables. we spoke on the connection pool, so this is one of the things I can focus on to try and fix the problem. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --000325554c8e44c78e04a3a5cfef--