fusesource / mqtt-client

A Java MQTT Client
http://mqtt-client.fusesource.org/
Apache License 2.0
1.27k stars 369 forks source link

Tomcat7.0.64 memory leak #56

Open l7810 opened 8 years ago

l7810 commented 8 years ago

Operating Environment: Tomcat7.0.64 JDK1.7.0_80-b15 mqtt-client 1.12 hawtbuf-1.11 hawtdispatch-1.22 hawtdispatch-transport-1.22

Using the Callback/Continuation Passing based API. After calling DispatcherConfig.getDefaultDispatcher().shutdown();

occur memory leak!!!!

严重: The web application [/sdk-web] created a ThreadLocal with key of type [java.lang.ThreadLocal](value [java.lang.ThreadLocal@5e36aab5]) and a value of type [org.fusesource.hawtdispatch.util.ThreadLocalPool.Pool](value [org.fusesource.hawtdispatch.util.ThreadLocalPool$Pool@57018165]) 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.