mirror of https://github.com/apache/activemq.git
add the capability to override memory options
since the last release , the xmx and xms are hardcoded on `env` , the goal is to use ACTIVEMQ_OPTS_MEMORY environement variable if needed to override memory options
(cherry picked from commit 1ba4628be6
)
This commit is contained in:
parent
f7d94093be
commit
b6d325eb12
|
@ -30,8 +30,9 @@
|
||||||
# ACTIVEMQ_TMP="$ACTIVEMQ_BASE/tmp"
|
# ACTIVEMQ_TMP="$ACTIVEMQ_BASE/tmp"
|
||||||
|
|
||||||
# Set jvm memory configuration (minimal/maximum amount of memory)
|
# Set jvm memory configuration (minimal/maximum amount of memory)
|
||||||
ACTIVEMQ_OPTS_MEMORY="-Xms64M -Xmx1G"
|
if [ -z "$ACTIVEMQ_OPTS_MEMORY" ] ; then
|
||||||
|
ACTIVEMQ_OPTS_MEMORY="-Xms64M -Xmx1G"
|
||||||
|
fi
|
||||||
if [ -z "$ACTIVEMQ_OPTS" ] ; then
|
if [ -z "$ACTIVEMQ_OPTS" ] ; then
|
||||||
ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=$ACTIVEMQ_CONF/login.config"
|
ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=$ACTIVEMQ_CONF/login.config"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue