#! /bin/shell

#  sudo 超级权限启动, 否则无法创建log日志文件夹报错

# 停止服务
ps aux|grep bootstrap-2.0|awk '{print $2}'|xargs kill -9
#/data0/java_projects_jenkins/
# 启动新jar,
# 带调试的启动方式
# nohup java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5503 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:NewRatio=2 -XX:SurvivorRatio=8  -XX:+HeapDumpOnOutOfMemoryError -Xms6g -Xmx6g -Xss256k -jar bootstrap-2.0.jar &>/dev/null &
# 正常的启动方式
nohup java -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:NewRatio=2 -XX:SurvivorRatio=8  -XX:+HeapDumpOnOutOfMemoryError -Xms6g -Xmx6g -Xss256k -jar bootstrap-2.0.jar &>/dev/null &

echo "run success"
