java 配置linux 启动节点

source ../jar.cfg

nohup java -Dprogram.name=route-customBatch.sh \

-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9919 \

-server -Xmx16G -Xms16G -XX:PermSize=50m -XX:MaxPermSize=50m -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=40 -XX:SoftRefLRUPolicyMSPerMB=0 \

-Dcom.sun.management.jmxremote.port=18501 \

-Dcom.sun.management.jmxremote.ssl=false \

-Dcom.sun.management.jmxremote.authenticate=false \

-cp .:../$jarname\

:../lib/* com.sf.module.routeconfig.util.CustomBatchApp 2016-04-20 &

 

 

stop文件

ps -ef|grep route-customBatch|grep -v grep|cut -c 9-15|xargs /bin/kill -9 

 

你可能感兴趣的:(java 配置linux 启动节点)