Hi, just curious if you could offer any insight into a problem I am having. I'm using the heritrix3-wrapper library in an application running in Tomcat (v8) and frequently seeing the following message when shutting down the container, sometimes the message will show multiple times
05-Sep-2017 18:54:50.611 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [h3-tester] created a ThreadLocal with key of type [org.netarchivesuite.heritrix3wrapper.jaxb.DateFormatLastLaunch$1] (value [org.netarchivesuite.heritrix3wrapper.jaxb.DateFormatLastLaunch$1@8245ae8]) and a value of type [org.netarchivesuite.heritrix3wrapper.jaxb.DateFormatLastLaunch] (value [org.netarchivesuite.heritrix3wrapper.jaxb.DateFormatLastLaunch@acc3985]) 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.
I am having some memory leak problems and I'm wondering if this is a cause or just a red herring.
I can see the use of ThreadLocal in the DateFormatLastLaunch class and the line explaining its use, because DateFormat is not threadsafe.
I realize NAS isn't a Tomcat application, but still wondering if you have experienced any similar messages about threads and this class?
Thanks,
Ben
Hi, just curious if you could offer any insight into a problem I am having. I'm using the heritrix3-wrapper library in an application running in Tomcat (v8) and frequently seeing the following message when shutting down the container, sometimes the message will show multiple times
05-Sep-2017 18:54:50.611 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [h3-tester] created a ThreadLocal with key of type [org.netarchivesuite.heritrix3wrapper.jaxb.DateFormatLastLaunch$1] (value [org.netarchivesuite.heritrix3wrapper.jaxb.DateFormatLastLaunch$1@8245ae8]) and a value of type [org.netarchivesuite.heritrix3wrapper.jaxb.DateFormatLastLaunch] (value [org.netarchivesuite.heritrix3wrapper.jaxb.DateFormatLastLaunch@acc3985]) 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.I am having some memory leak problems and I'm wondering if this is a cause or just a red herring.
I can see the use of ThreadLocal in the DateFormatLastLaunch class and the line explaining its use, because DateFormat is not threadsafe.
I realize NAS isn't a Tomcat application, but still wondering if you have experienced any similar messages about threads and this class?
Thanks,
Ben