Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Servet bridge: tomcat severe logs about possible memory leak
Servet bridge: tomcat severe logs about possible memory leak [message #1777851] Tue, 05 December 2017 10:18 Go to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
Hello,

Stopping an application built on top of servlet bridge, deployed on tomcat 8.5

I can find these SEVERE level logs

SEVERE [http-nio-8088-exec-3] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [app] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@473cab84]) and a value of type [org.eclipse.osgi.internal.loader.classpath.ClasspathManager.DefineContext] (value [org.eclipse.osgi.internal.loader.classpath.ClasspathManager$DefineContext@7ade541c]) 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.

Even I am pretty sure tomcat is managing this so there is no really a memory leak, but having something SEVERE in logging is not really cleaned.

Also clicking on leak detector on tomcat manager give this

05-Dec-2017 11:37:44.149 SEVERE [http-nio-8088-exec-13] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [app] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1179aeb8]) and a value of type [org.eclipse.osgi.internal.weaving.WeavingHookConfigurator.WovenClassContext] (value [org.eclipse.osgi.internal.weaving.WeavingHookConfigurator$WovenClassContext@7b5a8a18]) 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.

Is there something I could do to avoid these ? it seems to me that the cause could be something internal to equinox in servlet bridge.

[Updated on: Tue, 05 December 2017 10:43]

Report message to a moderator

Re: Servet bridge: tomcat severe logs about possible memory leak [message #1777872 is a reply to message #1777851] Tue, 05 December 2017 13:55 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
This appears to be https://bugs.eclipse.org/bugs/show_bug.cgi?id=469549

What version of Equinox are you using. Do you use any subclasses of ThreadLocal?
Re: Servet bridge: tomcat severe logs about possible memory leak [message #1777874 is a reply to message #1777872] Tue, 05 December 2017 14:00 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
Actually this is probably https://bugs.eclipse.org/bugs/show_bug.cgi?id=411714 and it looks like it is still an issue with the latest. Seems we must stop using subclasses of ThreadLocal in weaving to fix this.
Re: Servet bridge: tomcat severe logs about possible memory leak [message #1777881 is a reply to message #1777874] Tue, 05 December 2017 15:09 Go to previous message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
sorry I forgot to mention I am using Equinox from Oxygen.1
Previous Topic:Unhandled event loop exception - interface is not visible from class loader
Next Topic:Error updating product with p2
Goto Forum:
  


Current Time: Sun Dec 22 05:07:26 GMT 2024

Powered by FUDForum. Page generated in 0.03507 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top