You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Arpit Jain <ja...@gmail.com> on 2020/04/23 14:16:03 UTC

Exception while shutting down client

Hi,

I am closing Ignite client by calling "ignite.close()" and then stopping
the Tomcat container where the application with Ignite client was deployed.
I am observing below SEVERE error messages related to Ignite when Tomcat
shuts down.

23-Apr-2020 13:51:42.035 SEVERE [Thread-374]
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks
The web application [myApp] created a ThreadLocal with key of type
[java.lang.ThreadLocal] (value [java.lang.ThreadLocal@16bad45f]) and a
value of type
[org.apache.ignite.internal.marshaller.optimized.OptimizedObjectStreamRegistry.StreamHolder]
(value
[org.apache.ignite.internal.marshaller.optimized.OptimizedObjectStreamRegistry$StreamHolder@7c1fd9e3])
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.
23-Apr-2020 13:51:42.035 SEVERE [Thread-374]
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks
The web application [myApp] created a ThreadLocal with key of type
[java.lang.ThreadLocal.SuppliedThreadLocal] (value
[java.lang.ThreadLocal$SuppliedThreadLocal@2173998d]) and a value of type
[org.apache.ignite.internal.binary.BinaryContextHolder] (value
[org.apache.ignite.internal.binary.BinaryContextHolder@40ddcfdb]) 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.

There are more errors like this. Any ideas ?

Thanks

Re: Exception while shutting down client

Posted by akorensh <al...@gmail.com>.
Hi,
  These are internal to Tomcat. It is likely holding references to the
mentioned Ignite objects and cannot release these references causing a
memory leak.  

These messages can be safely ignored providing Tomcat is not prevented from
shutting down. As they occur during shutdown, any memory leaks will cease
once the process has ended.

Please see Tomcat documentation for more on these memory leaks.
 These links might be helpful: 
    https://backstage.forgerock.com/knowledge/kb/article/a55893580
    https://cwiki.apache.org/confluence/display/tomcat/MemoryLeakProtection


Thanks, Alex



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/