tomcat7 – jdbc datasource – This is very likely to create a memory leak

Try to put the sql Connector/Driver in the tomcat/lib and not in the war.
Because every time you deploy the war the connector/driver will be created sometimes the garbage collector cant remove them which will ends in a memory leak. So try to move the connector on the tomcat/lib folder.

Please read the following answers:

Why must the JDBC driver be put in TOMCAT_HOME/lib folder?

How to configure Tomcat to connect with MySQL

Leave a Comment