Skip to content

Commit

Permalink
AKI-543 modified launch script jvm settings
Browse files Browse the repository at this point in the history
    - changed the min heap size to 2GB
    - created the memorydump file when the kernel crashed
  • Loading branch information
AionJayT committed Nov 13, 2019
1 parent 6e31875 commit 89ba7eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ chmod +x ./rt/bin/*
# default to minimum 4gb heap if Xms not set.
JAVA_OPTS="$JAVA_OPTS"
if [[ ! ${JAVA_OPTS} = *"-Xms"* ]]; then
JAVA_OPTS+=" -Xms512m"
JAVA_OPTS+=" -Xms2g"
fi

if [[ ! ${JAVA_OPTS} = *"-Xmx"* ]]; then
Expand All @@ -53,7 +53,7 @@ fi

# to suppress illegal reflective access warning out of xnio and protobuf
# (we depend on xnio transitively via undertow-core)
JAVA_OPTS+=" --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED"
JAVA_OPTS+=" --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=heapdump.hprof"

####### WATCHGUARD IMPLEMENTATION #######
# #
Expand Down

0 comments on commit 89ba7eb

Please sign in to comment.