Handling MetaSpace leak issue (Out of Memory)

1.1k Views Asked by At

I'm working on an application for a while. Recently, At my workplace some redesigns were made on the application (Java Enterprise web application implemented using Jersey REST and Spring framework).

We are noticing that the application started throwing errors due to Out of Memory exceptions. We noticed that the application heap was consistent however the metaspace was increasing always and not decreasing at all.

As part of this, I've started analyzing performance stats, JCMD GC.class_stats. I've been seeing that some JAXB classes are increasing, But not decreasing. These JAXB classes are supposed to close after the web request is completed. Can you please help me fix this issue.

Thanks in Advance.

0

There are 0 best solutions below