jar架包啟動命令

全琪俊發表於2024-03-21

nohup java -jar xxx.jar >logs/consoleMsg.log 2>&1 &

5. ./start.sh 啟動程序
或nohup java -jar xxx.jar >/dev/null 2>&1 &
或nohup java -jar xxx.jar >logs/consoleMsg.log 2>&1 &
nohup java -jar xxx.jar > nohup.out 2>&1 &

nohup java -Xloggc:./wse-gc-%t.log -Xms512M -Xmx1024M -jar xxx.jar > nohup`date +%Y-%m-%d`.out 2>&1 &
nohup java -jar -Xms512M -Xmx1024M xxx.jar > nohup.out 2>&1 &

nohup java -jar xxx.jar >> nohup`date +%Y-%m-%d`.out 2>&1 &

-Xms128M -Xmx256M -XX:PermSize=64M -XX:MaxPermSize=128M
-Xloggc:./wse-gc-%t.log -XX:+PrintCommandLineFlags -version -XX:InitialHeapSize=1052906816 -XX:MaxHeapSize=16846509056 -XX:+PrintCommandLineFlags -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseParallelGC
/usr/java/jdk1.8.0_251/bin/java -Xmx5g -Xms5g -jar plugins/xxx.jar -consoleLog -consolelog -application org.eclipse.mat.api.parse "$@"

相關文章