Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 78624 invoked from network); 31 Jan 2005 04:06:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 31 Jan 2005 04:06:27 -0000 Received: (qmail 40544 invoked by uid 500); 31 Jan 2005 04:06:10 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 40526 invoked by uid 500); 31 Jan 2005 04:06:10 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 40513 invoked by uid 99); 31 Jan 2005 04:06:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of hariubc@gmail.com designates 64.233.184.200 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.200) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 30 Jan 2005 20:06:09 -0800 Received: by wproxy.gmail.com with SMTP id 55so813575wri for ; Sun, 30 Jan 2005 20:06:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=D/T4nV/oysJ1GIRx/GQ2/AHSjLoFXg6LPuYohQFuloKnmqNGmIarT6/iXJpweWG0zEPJLYncOlh6PL/Z2dfQDYdYLHlsJzUmr6NKOJPyDrhZig5Ac4tk8sMpi538i5ajhk76YKOllanvCCbBI+Wp8L/bNjcKNFUBVu4Jln6SxaM= Received: by 10.54.1.36 with SMTP id 36mr272022wra; Sun, 30 Jan 2005 20:06:07 -0800 (PST) Received: by 10.54.42.55 with HTTP; Sun, 30 Jan 2005 20:06:07 -0800 (PST) Message-ID: <267f5af705013020063189f0a7@mail.gmail.com> Date: Sun, 30 Jan 2005 20:06:07 -0800 From: Hari Mailvaganam Reply-To: Hari Mailvaganam To: Tomcat Users List , Igor Subject: Re: Failed JDBC connection hangs Tomcat In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The JTDS driver can cause the hanging you described - this has occured in a test we did on Win 2k, SQL Server 2k, 1.5 JDK. reagrds, Hari Mailvaganam On Sun, 30 Jan 2005 08:39:50 +0200, Igor wrote: > We have the same problem, that described in > > http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg58799.html > > There is ServletContextListener in our application, that schedule two tasks for repeated fixed rate execution on context initialization (Timer.scheduleAtFixedRate). > > First task is executed every minute. It queries MS SQL server, second task is executed every hour. > > If MS SQL server goes down, first task tries to use connection to database. > After this Tomcat may hang: when user tries to download a page, he or her will wait for a long time (more that 1 day). > > At the same time second taks (that is executed every hour) works as it was expected: there are corresponding entries in log file. > > First task is executed in separate thread, and I do not understand how can it hang whole tomcat (at least one context). > > We use JDK 1.5, tomcat 5.0.28. The same problem was on 1.4.2. Both for MS and JTDS drivers :-( > > Does somebody know how can I prevent tomcat from hang in such situations? > > Thank you in advance, > Igor > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org