Is there a way to inspect the current content of metaspace in my tomcat application running with Java 8?

158 Views Asked by At

Since recently, the metaspace memory of my tomcat application grew to unreasonable sizes, completely overcapping the maximum memory capacity of my server. I have a hunch about what is the cause of this issue, but I would like to confirm that first, so I need a way to inspect the metaspace's content. The application is running with Java 8, which I plan to upgrade in a few months.

From what I've found out during my researches, checking the metaspace of Java 8 applications is very tricky to do. I've tried software such as JMC, but they are only able to inspect the heap memory, which the metaspace isn't a part of. I've already set a maximum size for the metaspace memory usage, which fixed the issue for now. But this is only a workaround, I would like to fix what suddenly causes the metaspace to grow so quickly, as this definitely didn't happen until a few months ago.

0

There are 0 best solutions below