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

Unable to use newer JVM memory settings as Xmx overrides

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • scripts

    Description

      The Zookeeper environment initialization scripts forcibly set an Xmx setting. This is an issue for more flexible configuration JVM memory options like (MaxRAMPercentage and InitialRAMPercentage) as Xmx overrides them.

      Ideally, if SERVER_JVMFLAGS/CLIENT_JVMFLAGS are set, we should not attempt to modify them as the operator has decided what flags to set. However, this would be a behavior change, I don't know if the project is interested/willing to do that. Alternatively, we add a flag to disable the default (current) behavior.

      # default heap for zookeeper server
      if [ "$ZK_SKIP_XMX" != "yes" ];
        ZK_SERVER_HEAP="${ZK_SERVER_HEAP:-1000}"
        export SERVER_JVMFLAGS="-Xmx${ZK_SERVER_HEAP}m $SERVER_JVMFLAGS"
      fi
      

      Repeat for CLIENT_JVMFLAGS.

      Thank you

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dekimsey Daniel Kimsey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m