#!/bin/sh

JAVA_ARGS="-server -Xmx1024M -Xms1024M -Xmn512M -XX:PermSize=128M -XX:MaxPermSize=256M -Xss256K -XX:+DisableExplicitGC -XX:SurvivorRatio=1 -XX:+UseConcMarkSweepGC-XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0 -XX:+CMSClassUnloadingEnabled -XX:LargePageSizeInBytes=128M -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -Xloggc:log/gc.log";

echo $JAVA_ARGS

rm -f /home/new_zhuangxiu/backend/zhenghao-saas/zhenghao-saas-gateway/nohup.out
nohup java -jar /home/new_zhuangxiu/backend/zhenghao-saas/zhenghao-saas-gateway/zhenghao-saas-gateway.jar $JAVA_ARGS &
sleep 2
tail -f /home/new_zhuangxiu/backend/zhenghao-saas/zhenghao-saas-gateway/nohup.out
