Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-13367

Allow setting java heap minimum and maximum values in opennms.conf

    XMLWordPrintable

    Details

    • Sprint:
      Horizon 2021 - Jun 23 - Jul 7
    • HB Backlog Status:
      Backlog

      Description

      Inside of opennms.conf currently only JAVA_HEAP_SIZE tag is supported which translates to "-Xmx" option.

       

      Update to create two new tags for "-Xms" and "-Xmx"
      JAVA_HEAP_MIN_SIZE / JAVA_HEAP_MAX_SIZE

      When you set "-Xms" inside opennms conf additional settings, other opennms shell tools will inherit "-Xms" which depending on a systems configuration may fail due to insufficient memory.

      By having a separate tag for minimum, these tools can implicitly exclude the minimum tag even if they inherit the max tag and allow execution without issue.

      Additional Background, my env hard sets min and max, pretouch, use largepages, etc. We have to set the -Xms option inside the ADDITIONAL_MANAGER_OPTIONS which can cause the aforementioned issues when running other shell scripts that use this config file.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ranger Benjamin Reed
              Reporter:
              sean Sean Torres
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                HB Grooming Date:

                  Git Integration