javaheap-dumpeclipse-memory-analyzer

How to view metaspace area in heap dump?


I got the OutOfMemoryError : Metaspace in my tomcat.
And I got heap dump file of jvm. (I use java8)

So I want to view only metaspace area in heap dump(hprof format), but I can't know how to do that.

I use MAT(Eclipse Memory Analyzer) to analyze the heap dump file.

Can I view only metaspace area?

Thanks.


Solution

  • There isn't direct metaspace information in a HPROF file. Your might have a class loader leak or duplicate classes. Try reading Permgen vs Metaspace in Java or The Unknown Generation: Perm