|
|
|
@ -133,8 +133,8 @@ Transfer/sec: 226.50KB |
|
|
|
|
`restart.sh` |
|
|
|
|
|
|
|
|
|
```bash |
|
|
|
|
echo "Stopping sop-gateway-1.0.0-SNAPSHOT.jar" |
|
|
|
|
pid=`ps -ef | grep sop-gateway-1.0.0-SNAPSHOT.jar | grep -v grep | awk '{print $2}'` |
|
|
|
|
echo "Stopping sop-gateway-4.0.3-SNAPSHOT.jar" |
|
|
|
|
pid=`ps -ef | grep sop-gateway-4.0.3-SNAPSHOT.jar | grep -v grep | awk '{print $2}'` |
|
|
|
|
if [ -n "$pid" ] |
|
|
|
|
then |
|
|
|
|
echo "kill -9 的id:" $pid |
|
|
|
@ -142,7 +142,7 @@ then |
|
|
|
|
fi |
|
|
|
|
nohup java -jar -verbose:gc -XX:+PrintGCDetails -XX:+PrintHeapAtGC -Xloggc:gc.log \ |
|
|
|
|
-XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m -Xms1024m -Xmx1024m -Xmn256m -Xss256k -XX:SurvivorRatio=8\ |
|
|
|
|
-XX:+UseConcMarkSweepGC sop-gateway-1.0.0-SNAPSHOT.jar\ |
|
|
|
|
-XX:+UseConcMarkSweepGC sop-gateway-4.0.3-SNAPSHOT.jar\ |
|
|
|
|
--spring.profiles.active=dev --server.port=8081 & |
|
|
|
|
|
|
|
|
|
tail -f nohup.out |
|
|
|
|