Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 48096 invoked from network); 30 Jan 2004 17:12:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Jan 2004 17:12:26 -0000 Received: (qmail 3282 invoked by uid 500); 30 Jan 2004 17:12:11 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 3266 invoked by uid 500); 30 Jan 2004 17:12:10 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 3242 invoked from network); 30 Jan 2004 17:12:10 -0000 Received: from unknown (HELO ash.lnxi.com) (208.177.141.226) by daedalus.apache.org with SMTP; 30 Jan 2004 17:12:10 -0000 Received: (qmail 13282 invoked from network); 30 Jan 2004 17:17:13 -0000 Received: from jeffras.lnxi.com (192.168.25.109) by ash.lnxi.com with SMTP; 30 Jan 2004 17:17:13 -0000 Subject: RE: How does Torque handle the database disconnecting idleconnections??? From: Jeff Rasmussen Reply-To: jrasmussen@lnxi.com To: Apache Torque Users List In-Reply-To: <1075474137.1520.125.camel@Jeffras.dubtech.com> References: <4CC412117D772B4C8F5F55C13E0F3C090452FC@bbmex1.ad.bbm.ca> <1075474137.1520.125.camel@Jeffras.dubtech.com> Content-Type: text/plain Organization: Linux Networx Message-Id: <1075482350.1520.133.camel@Jeffras.dubtech.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 30 Jan 2004 10:05:50 -0700 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks again to Michael. This fixed my problem On Fri, 2004-01-30 at 07:48, Jeff Rasmussen wrote: > Thanks for the extremely quick response Michael. > > I will give it a try. > > I really find the users on this list most polite and knowledgeable. > > Thanks to all. :-) > > > > On Fri, 2004-01-30 at 07:44, Michael Kucera wrote: > > I had the same problem with MySQL. Set autoReconnect=true in the db > > connection string in torque.properties. > > > > jdbc:mysql://localhost/mydb?autoReconnect=true > > > > > > > > -----Original Message----- > > From: Jeff Rasmussen [mailto:jrasmussen@lnxi.com] > > Sent: Friday, January 30, 2004 9:31 AM > > To: Apache Torque Users List > > Subject: How does Torque handle the database disconnecting > > idleconnections??? > > > > > > I have been using torque for some time and have run into issues when the > > system sits idle for a given amount of time (the timeout settings on the > > database) torque throws IO errors. > > > > Does torque not check the connections before trying to use them???? > > > > > > Example: > > > > MySQL has a timeout setting for idle connections. It seems like torque > > will pool the connections, let them run idle, MySQL will disconnect the > > connections, but torque will still think that the connections are valid. > > When torque uses the connection we get SQLExceptions : Communication > > link failure. > > > > > > If you try to access it a second time everything works. > > > > > > Thanks for the input > > > > Jeff Rasmussen > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > > For additional commands, e-mail: torque-user-help@db.apache.org > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > > For additional commands, e-mail: torque-user-help@db.apache.org > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org