Skip to content

Commit

Permalink
Remove MAX_HEAP_SIZE and MIN_HEAP_SIZE variables (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Leszko authored and Jiří Holuša committed Feb 5, 2020
1 parent cfe53a5 commit 92c2031
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 28 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ Read more about the Management Center image [here](https://github.com/hazelcast/

## Hazelcast Defined Environment Variables

### MAX_HEAP_SIZE

You can give environment variables to the Hazelcast member within your Docker command. Currently, we support the variables `MIN_HEAP_SIZE` and `MAX_HEAP_SIZE` inside our start script. An example command is as follows:

```
$ docker run -e MIN_HEAP_SIZE="1g" hazelcast/hazelcast
```

### JAVA_OPTS

As shown below, you can use `JAVA_OPTS` environment variable if you need to pass multiple VM arguments to your Hazelcast member.
Expand Down
2 changes: 0 additions & 2 deletions hazelcast-enterprise/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ ARG CACHE_API_JAR="cache-api-${CACHE_API_VERSION}.jar"
ENV HZ_HOME="${HZ_HOME}" \
CLASSPATH_DEFAULT="${HZ_HOME}/*:${HZ_HOME}/lib/*" \
JAVA_OPTS_DEFAULT="-Djava.net.preferIPv4Stack=true -Djava.util.logging.config.file=${HZ_HOME}/logging.properties -XX:MaxRAMPercentage=80.0" \
MIN_HEAP_SIZE="" \
MAX_HEAP_SIZE="" \
HZ_LICENSE_KEY="" \
MANCENTER_URL="" \
PROMETHEUS_PORT="" \
Expand Down
8 changes: 0 additions & 8 deletions hazelcast-enterprise/start-hazelcast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ else
export JAVA_OPTS="${JAVA_OPTS_DEFAULT}"
fi

if [ -n "${MIN_HEAP_SIZE}" ]; then
export JAVA_OPTS="-Xms${MIN_HEAP_SIZE} ${JAVA_OPTS}"
fi

if [ -n "${MAX_HEAP_SIZE}" ]; then
export JAVA_OPTS="-Xmx${MAX_HEAP_SIZE} ${JAVA_OPTS}"
fi

if [ -n "${MANCENTER_URL}" ]; then
export JAVA_OPTS="-Dhazelcast.mancenter.enabled=true -Dhazelcast.mancenter.url=${MANCENTER_URL} ${JAVA_OPTS}"
else
Expand Down
2 changes: 0 additions & 2 deletions hazelcast-oss/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ ARG CACHE_API_JAR="cache-api-${CACHE_API_VERSION}.jar"
ENV HZ_HOME="${HZ_HOME}" \
CLASSPATH_DEFAULT="${HZ_HOME}/*:${HZ_HOME}/lib/*" \
JAVA_OPTS_DEFAULT="-Djava.net.preferIPv4Stack=true -Djava.util.logging.config.file=${HZ_HOME}/logging.properties -XX:MaxRAMPercentage=80.0" \
MIN_HEAP_SIZE="" \
MAX_HEAP_SIZE="" \
MANCENTER_URL="" \
PROMETHEUS_PORT="" \
PROMETHEUS_CONFIG="${HZ_HOME}/jmx_agent_config.yaml" \
Expand Down
8 changes: 0 additions & 8 deletions hazelcast-oss/start-hazelcast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ else
export JAVA_OPTS="${JAVA_OPTS_DEFAULT}"
fi

if [ -n "${MIN_HEAP_SIZE}" ]; then
export JAVA_OPTS="-Xms${MIN_HEAP_SIZE} ${JAVA_OPTS}"
fi

if [ -n "${MAX_HEAP_SIZE}" ]; then
export JAVA_OPTS="-Xmx${MAX_HEAP_SIZE} ${JAVA_OPTS}"
fi

if [ -n "${MANCENTER_URL}" ]; then
export JAVA_OPTS="-Dhazelcast.mancenter.enabled=true -Dhazelcast.mancenter.url=${MANCENTER_URL} ${JAVA_OPTS}"
else
Expand Down

0 comments on commit 92c2031

Please sign in to comment.