JVM 內存分析工具:HeapAudit

jopen 10年前發布 | 14K 次閱讀 HeapAudit Java開發

你是否看見過java.lang.OutOfMemory這些類似的錯誤信息?判斷一個系統好壞,高性能非常重要。而阻礙系統性能提高的第一大元兇就是內存問題,更糟糕的是如果GC不能完全釋放無用的內存,這會導致內存溢出,從而產生更嚴重的后果。 找出內存問題的元兇是一件非常困難的任務,幸運的是,heapaudit可以解決這個問題。

HeapAudit是一個Java代理,審計JVM進程的堆分配。

HeapAudit 運行在三種模式:

  • STATIC: This requires a simple integration hook to be implemented by the java process of interest. The callback hook defines how the allocations are recorded and the callback code is only executed when the java agent is loaded.
  • DYNAMIC: This injects HeapQuantile recorders to all matching methods and dumps heap allocations to stdout when removed. Be aware, a lot of recorders, including nested ones, may be injected if the supplied matching pattern is not restrictive enough.
  • HYBRID: This launches like the static use case but dynamically determines where to inject recorders.

項目主頁:http://www.baiduhome.net/lib/view/home/1394610918801

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!