开发者

How to find the oldest instances on the heap using OQL

开发者 https://www.devze.com 2023-01-23 04:16 出处:网络
I\'m trying to identify a memory leak using visualvm. I found some candidates by comapring snapshots, but since there are too many of these, I would like to narrow the search by locating the oldest in

I'm trying to identify a memory leak using visualvm. I found some candidates by comapring snapshots, but since there are too many of these, I would like to narrow the search by locating the oldest instances开发者_如何学编程 on the heap. Is there a way using OQL to search for such instances? I did some googling, but didn't find any answer. This is lead me to a second question - is there a good reference to OQL?

Thanks.


  1. There is no way to know the age of the instance. Such information is not available in the heapdump.
  2. OQL help is available here: http://visualvm.java.net/oqlhelp.html
0

精彩评论

暂无评论...
验证码 换一张
取 消