Uploaded image for project: 'Apache RocketMQ'
  1. Apache RocketMQ
  2. ROCKETMQ-161

Update runbroker.sh and runserver.sh to support user defined jvm memory flag

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.0-incubating
    • Component/s: None
    • Labels:
      None

      Description

      JVM mem flag is hard coded in runbroker.sh as follows:
      JAVA_OPT="${JAVA_OPT} -server -Xms8g -Xmx8g -Xmn4g"

      If one want to change such flag, he has to change the script, this is not friendly, especially in docker environment.

      Instead, it is able to use an environment variable to handle user defined flag, like:
      if [ -z $BROKER_MEM_OPS ]; then
      BROKER_MEM_OPS = "-Xms8g -Xmx8g -Xmn4g"
      fi
      JAVA_OPT="${JAVA_OPT} -server $BROKER_MEM_OPS"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zander dongeforever
                Reporter:
                zander dongeforever
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: