Java : Get heap dump without jmap or without hanging the application

前端 未结 5 1215
无人共我
无人共我 2021-01-05 03:15

In few circumstance, our application is using around 12 GB of memory. We tried to get the heap dump using jmap utility. Since the application is using some GB of memory it c

5条回答
  •  囚心锁ツ
    2021-01-05 03:35

    To add to Stephen's answers, you can also trigger a heap dump via API for the most common JVM implementations:

    • example for the Oracle JVM
    • API for the IBM JVM

提交回复
热议问题