Limit the number of heap dumps triggered by HeapDumpBeforeFullGC/AfterFullGC

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: None
    • Component/s: hotspot
    • None
    • svc
    • b05

      When encountering FGC, HeapDumpBeforeFullGC/AfterFullGC are commonly enabled to help with troubleshooting.

      In the current implementation, unlike HeapDumpOnOutOfMemoryError, which will only generate one dump, these two flags will generate dumps for every FGC, increasing the risk of disk full.

      Although these two flags are manageable, disabling them timely in production may not be easy.

      To enhance production-friendliness, it would be beneficial to have the ability to limit the number of dumps triggered by these two flags.

            Assignee:
            Denghui Dong
            Reporter:
            Denghui Dong
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: