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

后端 未结 3 1744
盖世英雄少女心
盖世英雄少女心 2020-11-27 14:51

I get the following messages in catalina.out log file when tomcat is shutdown. I am using Tomcat 7.x and the Tomcat JDBC data source.

Mar 26, 2013 1:17:52 PM         


        
3条回答
  •  -上瘾入骨i
    2020-11-27 15:31

    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

提交回复
热议问题