MAT(Memory Analyzer)使用总结

unreachable Objects Histogram:可被回收的对象,但是现在仍然在内存当中
Shallow Heap指这个对象它自己占了多少内存,Retained Heap指在这个引用链之上,这些对象总共占了多少内存

with outgoing references:这个类引用到了哪些类

with incoming references:这个类被哪些类所引用

在查找内存泄露的过程中,应该使用with incoming references,查看该类被哪些类所引用了,导致该类不能被回收OQL

select * from com.hawk.game.player.Player  p where toString(p.sessionIp) ="114.91.117.46"

select * from com.hawk.game.player.Player 

 

你可能感兴趣的:(Java)