#!/bin/bash
#rd_hyc
#环境变量不存在则设置初始参数
if [ 0"$JETTY_PORT" = "0" ]; then
        JETTY_PORT=8100
fi
if [ 0"$LOG4J_FILE" = "0" ]; then
        LOG4J_FILE="../logs/ierp.log"
fi
if [ 0"$log4jlevel" = "0" ]; then
        log4jlevel=INFO
fi
if [ 0"$JAVA_OPTS" = "0" ]; then
        JAVA_OPTS="-server -Xms1024m -Xmx2048m -XX:MaxMetaspaceSize=512m"
fi
if [ 0"$JAVA_JMX_OPS" = "0" ]; then
        JAVA_JMX_OPS="-XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+HeapDumpOnOutOfMemoryError "
fi
