Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-1652

Provide hooks to customize OnOutOfMemoryError behavior

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.3, 1.5.0
    • None
    • scripts
    • None

    Description

      Currently, the accumulo startup script hardcodes OnOutOfMemoryError behavior to be kill -9 %p. Perhaps this could be modified to call a script.

      for example:

      -XX:OnOutOfMemoryError="${ACCUMULO_HOME}/bin/oom.sh %p $1"

      whose default behavior implementation is kill -9, but this can be modified by the administrator to implement other behavior (e.g. do a jstack first).

      This has the added benefit of being able to modify the behavior at runtime without restarting processes.

      Attachments

        Issue Links

          Activity

            People

              ecn Eric C. Newton
              drew.farris Drew Farris
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: