Сервер Warcat Depl Tomcat JDBC & Mysql err - я скопировал свой драйвер в Tomcat / lib и собрал файл war, сделав свою зависимость, как предусмотрено.Получение ошибки все еще - PullRequest
0 голосов
/ 17 мая 2019
-May-2019 18:29:47.938 WARNING [http-nio-8080-exec-24] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc
The web application [SampleTest] registered the JDBC driver [com.mysql.cj.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

16-May-2019 18:29:47.939 WARNING [http-nio-8080-exec-24] 

org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [SampleTest] appears to have started a thread named [mysql-cj-abandoned-connection-cleanup] but has failed to stop it.  

Это может привести к утечке памяти.Трассировка стека потока:

Я скопировал свой драйвер в Tomcat / lib и собрал файл war, сделав свою зависимость, как предусмотрено.Получение ошибки все еще

SEVERE [http-nio-8080-exec-6] 
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks 

The web application [enimmPartner] created a ThreadLocal with key of 
type 
[org.springframework.boot.SpringBootExceptionHandler.LoggedExceptionHandlerThreadLocal] (value [org.springframework.boot.SpringBootExceptionHandler$LoggedExceptionHandlerThreadLocal@11550dfc]) and a value of type [org.springframework.boot.SpringBootExceptionHandler] (value 
[org.springframework.boot.SpringBootExceptionHandler@8864e34]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory 
leak.
...