Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2185

Run server with -XX:+HeapDumpOnOutOfMemoryError and -XX:OnOutOfMemoryError='kill %p'.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.5.1, 3.6.0
    • documentation, scripts
    • None

    Description

      Continuing to run a server process after it runs out of memory can lead to unexpected behavior. This issue proposes that we update scripts and documentation to add these JVM options:

      1. -XX:+HeapDumpOnOutOfMemoryError for help with post-mortem analysis of why the process ran out of memory.
      2. -XX:OnOutOfMemoryError='kill %p' to kill the JVM process, under the assumption that a process monitor will restart it.

      Attachments

        1. ZOOKEEPER-2185.001.patch
          4 kB
          Chris Nauroth

        Activity

          People

            cnauroth Chris Nauroth
            cnauroth Chris Nauroth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: