Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9604

Upon JVM OOM (Out Of Memory), print out a summary of heap histograms in addition to heap dump

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Duplicate
    • None
    • Local/Config
    • None

    Description

      It appears that jmap has an option to allow dumping heap histograms after a heap dump is generated (http://www.oracle.com/technetwork/java/javase/memleaks-137499.html#gbywi). This could be useful to provide a very quick overview of the biggest objects in heap without having to download the massive hprof file off the Cassandra nodes. We can potentially hook it up using this JVM option: -XX:OnOutOfMemoryError="<cmd args>; <cmd args>" in the cassandra-env.sh file.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              weideng Wei Deng
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: