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>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




Reply via email to