diff --git a/conf/mingan_reboot.sh b/conf/mingan_reboot.sh new file mode 100644 index 0000000..eab32c2 --- /dev/null +++ b/conf/mingan_reboot.sh @@ -0,0 +1,12 @@ +#!/bin/sh +#by wk +source /etc/profile +export LANG="zh_CN.UTF-8" +BASE_DIR="/data/jieling/sensitiveWordFilter" +LOG_DIR="/data/jieling/sensitiveWordFilter/logs" + +pid=`ps -ef|grep java|grep "SensitiveWord"|awk '{print $2}'` +kill $pid +sleep 5 + +nohup java -Dfile.encoding=UTF-8 -server -Xms1g -Xmx1g -Xss512K -XX:MaxMetaspaceSize=256m -XX:CompressedClassSpaceSize=64m -XX:+UseG1GC -XX:ParallelGCThreads=8 -XX:ConcGCThreads=4 -XX:NativeMemoryTracking=detail -verbose:gc -Xloggc:${LOG_DIR}/gc_core.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:-OmitStackTraceInFastThrow -Djava.ext.dirs=${BASE_DIR}/lib:$JAVA_HOME/jre/lib/ext -cp ${CLASSPATH} com.ljsd.SensitiveWordApplication --spring.config.location=${BASE_DIR}/conf/application.properties >> corelog.log 2>&1 &