Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-5184

REST API for Heap Dumps

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • RHDG 8.4.1 GA
    • None
    • Server
    • None

      Because the image contains only the runtime components of the JVM, without all of the collateral tools such as jmap and jcmd, it is not possible to easily obtain a heap dump.

      We can add a new REST API

      POST /rest/v2/server/memory?action=heap-dump[&live=true|false]
      

      which creates a heap dump in the infinispan.server.data.dir and returns a JSON indicating the path of the heap dump:

      {"path":"/opt/infinispan/server/data/dump16758740611738239236.hprof"}

              ttarrant@redhat.com Tristan Tarrant
              ttarrant@redhat.com Tristan Tarrant
              Diego Lovison Diego Lovison
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: