标签:port lse nic 端口 xmx parallel jdb test enc
#!/bin/sh
# jvm参数配置
jvm_args="-server -Xmx200m -Xms200m -Xmn100m -Xss1m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50"
# 代码启动参数
program_args="--spring.profiles.active=yyg --spring.datasource.username=root --spring.datasource.password=****** --spring.datasource.url=jdbc:mysql://******:3306/paytest?useUnicode=true&characterEncoding=UTF8&useSSL=false"
# jar名称
jarname=java_red_index.jar
# 启动端口
port=8083
# 删除上次启动的日志
rm -rf /app/logs/mpay/*
# 杀掉上次的进程
ps -ef|grep $jarname |grep -v grep|cut -c 9-15|xargs kill -9
echo 杀掉所有进程完成。。。
# nohub 启动
nohup java -jar $jvm_args $jarname $program_args --server.port=$port &
echo "启动success"
标签:port lse nic 端口 xmx parallel jdb test enc
原文地址:https://www.cnblogs.com/baobaoxiaokeai/p/11975863.html