您可以运行
jmap -histo它将显示您已加载的类。
例如:
jmap -histo[:live] <pid> to connect to running process and print histogram of java object heap if the "live" suboption is specified, only count live objectsExample: jmap -dump:live,format=b,file=heap.bin <pid>
另一种方法是启用类加载调试信息,并执行一些脚本来检测剩下的内容。



