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

Add a special START_SERVER_JVMFLAGS option only for `start` command to distinguish JVMFLAGS and SERVER_JVMFLAGS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.5.3
    • None
    • server

    Description

      Add a special START_SERVER_JVMFLAGS option only for `start` command to distinguish JVMFLAGS and SERVER_JVMFLAGS.

      If we use the normal way to add JVM options with `JVMFLAGS` in `conf/java.env`, then it will effect almost all shell scripts under `bin` directory. Even if using `SERVER_JVMFLAGS` will effect some commands like `zkServer.sh status`, include four-letters commands.

      For example, if the JVMFLAGS is
      ```bash
      export JVMFLAGS="-Xms3G -Xmx3G -Xmn1G -XX:AlwaysPreTouch -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:-PrintGCTimeStamps -Xloggc:/home/zookeeper/logs/zookeeper_`date '%Y%m%d%H%M%S'`.gc -XX:-UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=64M"
      ```
      then we will get too many GC log files due to using the `mntr` four-letters command regularly in some monitor situation.
      ```bash
      $ ls ~/logs
      zookeeper_20170704175942.gc
      zookeeper_20170704180101.gc
      zookeeper_20170704180201.gc
      zookeeper_20170704180301.gc
      zookeeper_20170704180401.gc
      ...
      ```

      Attachments

        Activity

          People

            benedict jin Benedict Jin
            benedict jin Benedict Jin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 72h
                72h
                Remaining:
                Remaining Estimate - 71h 50m
                71h 50m
                Logged:
                Remaining Estimate - 71h 50m
                10m