How can I see which garbage collector java is using

前端 未结 7 497
离开以前
离开以前 2020-12-10 03:26

The Java Virtual Machine supports several garbage collection strategies.

This article explains them.

Now I am wondering which (automatically selected) strat

相关标签:
7条回答
  • 2020-12-10 04:26

    jmap -heap

    Prints a heap summary. GC algorithm used, heap configuration and generation wise heap usage are printed.

    http://java.sun.com/javase/6/docs/technotes/tools/share/jmap.html

    0 讨论(0)
提交回复
热议问题