I have a small grails application running on Tomcat in Ubuntu on a VPS. I use MySql as my datastore and everything works fine unless I leave the application for more than ha
Add these parameters to dataSource
testOnBorrow = true testWhileIdle = true testOnReturn = true
See this article for more information http://sacharya.com/grails-dbcp-stale-connections/