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

I've created https://bugs.eclipse.org/bugs/show_bug.cgi?id=349997


On 22 June 2011 06:19, Michael Gorovoy <michael@xxxxxxxxxxx> wrote:
> 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
>
>
> _______________________________________________
> jetty-dev mailing list
> jetty-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>
>


Back to the top