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

Update examples/opennms.conf to be JDK11-compatible

    XMLWordPrintable

    Details

    • Sprint:
      Horizon 2020 - May 27, Horizon 2020 - June 10, Horizon 2020 - June 24

      Description

      At least the following options listed in etc/examples/opennms.conf break startup with JDK11:

      -d64 (evidently had an effect only on Solaris anyway, RIP)

      -XX:+PrintGCTimeStamps / -XX:+UseGCLogFileRotation / bunch of other -XX flags about GC logging have been unified into incantations of the new -Xlog flag.

      Here's an example that starts up successfully and approximates the GC-logging accomplished by the old flags under JDK8:

      ADDITIONAL_MANAGER_OPTIONS="${ADDITIONAL_MANAGER_OPTIONS} -XX:+UseStringDeduplication"
      
      # Garbage Collection
      ADDITIONAL_MANAGER_OPTIONS="${ADDITIONAL_MANAGER_OPTIONS} -Xlog:gc*=info:file=/opt/opennms/logs/gc.log::filecount=4,filesize=20M"
      ADDITIONAL_MANAGER_OPTIONS="${ADDITIONAL_MANAGER_OPTIONS} -XX:+UseG1GC"
      

        Attachments

          Activity

            People

            Assignee:
            indigo Ronny Trommer
            Reporter:
            jeffg Jeff Gehlbach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: