Hello all, I'm using Apache CXF 2.4.6 as a web service client (SOAP) and the application uses the jars provided by JBoss AS7 as modules. No Apache CXF jars are provided with the application.
We are seeing OutOfMemory: Java Heap Space in our systems and I've done some analysis on this. While I don't have all the pieces of the puzzle yet, it looks like the org.apache.cxf.BusFactory class keeps threads in a WeakHashMap (threadBusses). The number of threads keeps increasing and they don't seem to be garbage collected? I analised a heap dump (after forcing GC) using Eclipse MAT and result suggests memory leak as per screenshot attached. I am using Apache CXF in other projects with no issues. One main difference is that this is the only project where we use Apache CXF as a Web Service client but we don't use Spring Framework for dependency injection (we use CDI instead). Could this be the cause of it? Do you have any idea how can we fix this? Thanks in advance, -- Eduardo Andrade [email protected] www.linkedin.com/in/eduardofandrade
