Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-13794

REST API for Heap Dumps

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 14.0.0.Dev04
    • 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
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: