HI,
We have integrated smack API in our tomcat web application. We used to login to openfire server and continues to login until tomcat process is shutdown.
But while stopping the tomcat process gracefully, we see one error line in catalina.out of our tomcat 7.
Below is the line :
SEVERE: The web application [/PluginWebappTest] appears to have started a thread named [Thread-2] but has failed to stop it. This is very likely to create a memory leak.
While analyzing the process using Jconsole , this thread [Thread-2] is having following information -
Name: Thread-2
State: RUNNABLE
Total blocked: 0 Total waited: 0
Stack trace:
sun.net.dns.ResolverConfigurationImpl.notifyAddrChange0(Native Method)
sun.net.dns.ResolverConfigurationImpl$AddressChangeListener.run(Unknown Source)
After debugging through smack3.3.0 code , we see like while loading class "org.jivesoftware.smack.util.dns.JavaxResolver" in SmackConfiguation.java - private static void parseClassToLoad(XmlPullParser parser) method , this thread got created and not stopped after that.
Please see like what is this thread got created as it is not allowing our tomcat process to stop gracefully.
Regards,
Keshav