#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o xtrace

JAR_LOCATION=${1:-$JAR_LOCATION}
CONFIG_PROFILE=${2:-$CONFIG_PROFILE}

exec java -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Xloggc:gc.log -XX:+PrintGCCause -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=3 -XX:GCLogFileSize=2M ${JAVA_OPTS:-} -cp $JAR_LOCATION kixi.datastore.bootstrap $CONFIG_PROFILE >&1


#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o xtrace

JAR_LOCATION=${1:-$JAR_LOCATION}
CONFIG_PROFILE=${2:-$CONFIG_PROFILE}

exec java -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Xloggc:./gc.log -XX:+PrintGCCause -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=3 -XX:GCLogFileSize=2M ${JAVA_OPTS:-} -cp $JAR_LOCATION kixi.datastore.bootstrap $CONFIG_PROFILE >&1


Change to gc log location
Change to gc log location