I am running a test suite(Many test cases, with TestNG framework) on apache-tomee, which requires deploying and undeploying very frequently. but unfortunately the Apache Tomee instance throws OOM before the test suite completes.
Jconsole show that the heap and non-heap memory usage would just grow and grow.
I use the Eclipse Memory Analyzer to analyze the HeapDump file, but found something odd:
MemoryAnalyzer domainator_tree
Path to GC Root, all JNI Local reference....
I couldn't find out who is the GC Root of class TestNG And cause the OOM, we don't have any JNI Code.
The ThreadLocalMemoryLeakPreventionListener is configured to be Enabled. Apache-TomEE with tomcat8.0.32 JDK1.7.0_67
add: When i switch to JDK1.7.0_80 things get better but still OOM finally. Memory Analyzer show the same thing.