Hi Justin,
Thanks for your response. I am using Artemis 2.19.1 version. I don't see "--java-memory" as an arguments. Though I tried but not working. https://activemq.apache.org/components/artemis/documentation/2.19.0/using-server.html I tried with "--java-options" with value "-Xms512M -Xmx3G" but it is appending to that java-args and not overriding new values. IF "%JAVA_ARGS%"=="" (set JAVA_ARGS=-Xms512M -Xmx3G -XX:+PrintClassHistogram -XX:+UseG1GC -XX:+UseStringDeduplication -Xms512M -Xmx1024M -Xbootclasspath/a:%ARTEMIS_HOME%\lib\jboss-logmanager-2.1.10.Final.jar;%ARTEMIS_HOME%\lib\wildfly-common-1.5.2.Final.jar -Djava.security.auth.login.config=%ARTEMIS_ETC_DIR%\login.config -Dhawtio.disableProxy=true -Dhawtio.offline=true -Dhawtio.realm=activemq -Dhawtio.role=amq -Dhawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal -Djolokia.policyLocation=%ARTEMIS_INSTANCE_ETC_URI%\jolokia-access.xml -Dartemis.instance=%ARTEMIS_INSTANCE%) Thanks, Shivang. -----Original Message----- From: Justin Bertram <jbert...@apache.org> Sent: Monday, November 20, 2023 3:15 AM To: users@activemq.apache.org Subject: Re: How to set Xmx value for Artemis Broker Use the --java-memory switch from the "create" command, e.g.: ./artemis create ... --java-memory 64G ... This is described in the documentation [1]. You can also get this information using "help," e.g.: ./artemis help create Justin On Sun, Nov 19, 2023 at 12:46 AM Shivang Modi <sm...@provenir.com.invalid> wrote: > Hi Team, > > > > While creating brokers want to set high heap size (Xmx value) via > parameters, how can I achieve that? Want to override Xmx values of > below JAVA_ARGS > > > > JAVA_ARGS="-XX:+PrintClassHistogram -XX:+UseG1GC > -XX:+UseStringDeduplication -Xms512M -Xmx2G -Dhawtio.disableProxy=true > -Dhawtio.realm=activemq -Dhawtio.offline=true -D > > > hawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.secur > ity.jaas.RolePrincipal > -Djolokia.policyLocation=${ARTEMIS_INSTANCE_ETC_URI}jolokia-access.xml > > > > Thanks, > > Shivang. > > -- > *This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended > solely for the use of the addressee(s). If you are not the intended > recipient, please notify the sender by e-mail and delete the original > message. Further, you are not to copy, disclose, or distribute this > e-mail or its contents to any other person and any such actions maybe unlawful*. > This e-mail may contain viruses. Provenir has taken every reasonable > precaution to minimize this risk, but is not liable for any damage you > may sustain as a result of any virus in this e-mail. You should carry > out your own virus checks before opening the e-mail or attachment. > Provenir reserves the right to monitor and review the content of all > messages sent to or from this e-mail address. Messages sent to or from > this e-mail address may be stored on the Provenir e-mail system. > -- *This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions maybe unlawful*. This e-mail may contain viruses. Provenir has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Provenir reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Provenir e-mail system.