How to diagnose a Java 8 metaspace leak?

后端 未结 2 1053
猫巷女王i
猫巷女王i 2021-02-06 21:42

I have a J2EE application with some interesting behavior ... the heap seems to behave well, growing and shrinking with garbage collections as expected over time. There is no app

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-06 22:47

    Do a heap dump and analyze it with Eclipse MAT. Look at the classes you have loaded. Check if there's something unexpected, especially duplicate classes. It also has a classloader explorer.

    Edit: In theory you could also be that you're constantly generating proxies.

提交回复
热议问题