#!/bin/bash
set -x
JAVA_OPT="-Xms2g -Xmx2g -Xmn1g -Xss300k -XX:MetaspaceSize=300m -XX:MaxMetaspaceSize=300m"
JAVA_OPT="${JAVA_OPT} -Dnacos.standalone=${STANDALONE} -Dnacos.home=${BASE_DIR}"
JAVA_OPT="${JAVA_OPT} -jar /home/service.jar"
mkdir -p "${BASE_DIR}/conf" && echo "" >> $CLUSTER_CONF
exec java $JAVA_OPT
