tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hassan Schroeder" <hassan.schroe...@gmail.com>
Subject Re: tomcat can not connect to MySql
Date Sat, 22 Sep 2007 16:23:33 GMT
On 9/22/07, fdehghani <dehghani_fatemeh@yahoo.com> wrote:
>
> but when running its service, after sometime when run my project,tomcat say
> that can not connect to database(SystemException)
> then i should restart its service to work correctly.
> i'm not sure thet its tomcat's problem or MySql

If a TC restart "fixes" it, the problem is almost certainly your app :-)

Sounds like you're not closing connections somewhere. If you're
using connection pooling, set the pool size to 1 and you'll find the
problem pretty quickly...

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message