Re: Mysql timouts...

2007-02-23 Thread David Smith
Sorry... my bad. My math doesn't work early in the morning. :-[ At any rate, the validation query run every minute is still acting as a keep-alive on the connection. It'll never go stale. Personally I'd drop the testWhileIdle, timeBetweenEvictionRuns, minEvictableIdleTime and just let the poo

Re: Mysql timouts...

2007-02-22 Thread Jacob Rhoden
David Smith wrote: I think I see what's happening here. You've told the database pool to continually test connections every hour. The validation query itself validationQuery="select 1" testWhileIdle="true" timeBetweenEvictionRunsMillis="6" minEvictableIdleTimeMillis="600

RE: Mysql timouts...

2007-02-22 Thread Tim Lucia
> -Original Message- > From: Jacob Rhoden [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 22, 2007 8:44 AM > To: Tomcat Users List > Subject: Re: Mysql timouts... > > I will have to read the documents to find out why having the connection > automatically re

Re: Mysql timouts...

2007-02-22 Thread David Smith
I think I see what's happening here. You've told the database pool to continually test connections every hour. The validation query itself most likely acts as a keep alive on the connection so it never actually hits the 8 hour default time out of mysql. Open connections will most likely never go

Re: Mysql timouts...

2007-02-22 Thread Jacob Rhoden
Thanks for your reply, I have read through that document and the one on the mysql website, and discovered these other parameters, so I added this as well. It didnt make any difference. The mysqladmin program still reports the connections going untouched for hours. validationQuery="select

Re: Mysql timouts...

2007-02-22 Thread David Smith
If you read through http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html, you'll find the validationQuery attribute is used to test connections before they are borrowed from the pool. The query can be as simple as "select 1". As a side note, drop the autoReconnect=true from your data

Re: Mysql timouts...

2007-02-22 Thread Jacob Rhoden
Jacob Rhoden wrote: I am having the seemingly common "Broken pipe" to mysql problem with tomcat. driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/blah?autoReconnect=true&useUnicode=true&characterEncoding=utf8"/> I have installed a most up to date version of t

Mysql timouts...

2007-02-21 Thread Jacob Rhoden
I am having the seemingly common "Broken pipe" to mysql problem with tomcat. All i could find was some info about a "maxideltime" setting and "idleconnectiontestperiod" where can I find out info about tuning to make sure tomcat doesn't serve out stale database connections? The following setti