Title | appears to have started a thread named [mysql-cj-abandoned-connection-cleanup] but has failed to stop it. This is very likely to create a memory leak. appears to have started a thread named [mysql-cj-abandoned-connection-cleanup] but has failed to stop it. This is very likely to create a memory leak. | ||||||
Writer | Ji-Seob Lee | Write Date | Aug 13 2024 | Modify Date | May 15 2025 | View Count | 2809 |
When shutting down Tomcat, you may see a message like the below one.
appears to have started a thread named [mysql-cj-abandoned-connection-cleanup] but has failed to stop it. This is very likely to create a memory leak.
Place the mysql driver in the ~/apache-tomcat-10.1.25/lib directory
AND
Delete the mysql driver from the ~/apache-tomcat-10.1.25/webapps/ROOT/WEB-INF/lib directory.
Place the JDBC driver in the library directory of the WAS,
Delete the JDBC driver from the WEB-INF/lib directory of the web application.
If you are serving your web application as a WAR file,
You must delete the JDBC driver jar file
from the WEB-INF/lib directory of the WAR file.
For more details on how this works,
you can read the Stack Overflow article on the web page referenced below.
[ Referenced web pages ] | |||||||