Hi im deloying my web app's in TomEE and i always use:

-XX:MaxPermSize=256M -XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled

I use NetBeans 7.2 and i can redeploy everytime and the memory leak doesnt
appear, i recomend you the parameters.


2012/10/15 Harald Wellmann <hwellmann...@gmail.com>

> Hi Romain,
>
> I ran TomEE with my sample under the debugger, and I think the leak is in
> TomcatWebAppBuilder:
>
> There is a map
>
> private Map<ClassLoader, Map<String, Set<String>>> jsfClasses;
>
> storing the classloader of each deployed webapp, and the map entry is
> never removed when the webapp is undeployed.
>
> Best regards,
>
> Harald
>
>
> Am 15.10.2012 10:56, schrieb Romain Manni-Bucau:
>
>  Hi Harald and thanks to have shared a sample.
>>
>> I tried to work on it but it was quite hard since the static "big
>> attribute" was changiong the behavior.
>>
>> If you remove it the garbage collection is fine but with it i manage to
>> reproduce your OOME.
>>
>> *Romain Manni-Bucau*
>> *Twitter: @rmannibucau 
>> <https://twitter.com/**rmannibucau<https://twitter.com/rmannibucau>
>> >*
>> *Blog: 
>> **http://rmannibucau.**wordpress.com/*<http://rmannibucau.wordpress.com/*>
>> <http://**rmannibucau.wordpress.com/ <http://rmannibucau.wordpress.com/>>
>> *LinkedIn: 
>> **http://fr.linkedin.com/in/**rmannibucau*<http://fr.linkedin.com/in/rmannibucau*>
>> *Github: https://github.com/**rmannibucau*<https://github.com/rmannibucau*>
>>
>>
>>
>>
>


-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Reply via email to