Page 1 of 1

Error in Apache Tomcat

PostPosted: Thu May 03, 2018 7:32 am
by GabrielWyss
Hello everybody

In the logs of our Apache Tomcat Servers version 7 and 8 we found regurarly the following entry:
(Found in line: 4) 02-May-2018 06:39:10.576 SEVERE [http-nio-80-exec-5] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [omsv_police] created a ThreadLocal with key of type [com.microsoft.sqlserver.jdbc.ActivityCorrelator$1] (value [com.microsoft.sqlserver.jdbc.ActivityCorrelator$1@55116068]) and a value of type [com.microsoft.sqlserver.jdbc.ActivityId] (value [4c5a4e58-69ee-44d4-afc1-df4d233f186b-0]) 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.


This error comes with different solutions.
Does anyone have any idea where this problem comes from?

Thanks for help

Re: Error in Apache Tomcat

PostPosted: Fri May 11, 2018 10:53 am
by rgansevles
Gabriel,

This is a bug in the microsoft jdbc driver and reported in https://github.com/Microsoft/mssql-jdbc/issues/314 and https://github.com/Microsoft/mssql-jdbc/issues/465

It is supposed to be fixed in the latest release, see https://github.com/Microsoft/mssql-jdbc/releases
Can you try with the latest release?

Rob