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

zookeeper should set a default value for SERVER_JVMFLAGS and CLIENT_JVMFLAGS so that memory usage is controlled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.5
    • 3.5.0
    • None
    • None

    Description

      We noticed this with jdk 1.6 where if no heap size is set the process takes up to 1/4 of mem available on the machine.

      More info http://stackoverflow.com/questions/3428251/is-there-a-default-xmx-setting-for-java-1-5

      You can run the following command to see what are the defaults for your machine

      java -XX:+PrintFlagsFinal -version 2>&1 | grep -i -E 'heapsize|permsize|version'
      

      And we noticed on two different class of machines that this was 1/4th of total memory on the machine.

      Attachments

        1. ZOOKEEPER-1670.patch
          0.3 kB
          Arpit Gupta
        2. ZOOKEEPER-1670.patch
          0.3 kB
          Arpit Gupta
        3. ZOOKEEPER-1670.patch
          0.5 kB
          Arpit Gupta
        4. ZOOKEEPER-1670.patch
          0.6 kB
          Arpit Gupta
        5. ZOOKEEPER-1670.patch
          0.4 kB
          Arpit Gupta

        Issue Links

          Activity

            People

              fpj Flavio Paiva Junqueira
              arpitgupta Arpit Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: