Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] MBeanContainer keeps reference to servlets after they are undeployed

Greetings,

Could you please open a ticket at http://bugs.eclipse.org/bugs for RT|Jetty project? We will look into this soon.

Thanks,
Michael

2011/6/21 Ortwin Glück <odi@xxxxxx>
Hi,

I have found that:

WebAppContext app = new WebAppContext();
app.setContextPath(context);
app.setWar(warFile);
app.setClassLoader(new MyWebAppClassLoader(cl, app));
jetty.getHandler().addHandler(app);

app.stop();
jetty.getHandler().removeHandler(app);
app.destroy();

doesn't allow the webapp to be GCed if JMX is enabled.

The reason is that the MBeanContainer still has Container.Relationship
objects to the ServletHolders.

Ortwin
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev


Back to the top