Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338106

Summary: MBeans registered via o.e.j.s.context.ManagedAttributes are not unregistered
Product: [RT] Jetty Reporter: Simone Bordet <simone.bordet>
Component: serverAssignee: Greg Wilkins <gregw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: 7.3.0   
Target Milestone: 7.3.x   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Simone Bordet CLA 2011-02-24 10:50:35 EST
MBeans that gets registered using the context param "org.eclipse.jetty.server.context.ManagedAttributes" in web.xml are never unregistered on context stop, causing memory leaks in case of redeployments of the context.
Comment 1 Simone Bordet CLA 2011-02-24 11:57:19 EST
Note that this is only happening on redeploy.
If the server is stopped, then MBeanContainer is stopped and it will unregister everything, but if a context is redeployed, then some of its mbeans will not be unregistered.
Comment 2 Simone Bordet CLA 2011-03-29 05:07:15 EDT
Greg, I believe this is fixed, but since you worked on the final fix, can you confirm ?
Comment 3 Greg Wilkins CLA 2011-09-06 01:14:00 EDT
fixed by using Weak hash maps.