You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yudao/yudao-server/start.bat

32 lines
676 B
Batchfile

@echo off
chcp 65001
title 芋道管理系统
cd %~dp0
echo ========================================
echo 正在启动芋道管理系统...
echo ========================================
set JAVA_OPTS=-server ^
-Xms1g ^
-Xmx2g ^
-XX:MetaspaceSize=256m ^
-XX:MaxMetaspaceSize=512m ^
-XX:ReservedCodeCacheSize=512m ^
-XX:MaxDirectMemorySize=1g ^
-XX:HeapBaseMinAddress=0x100000000 ^
-XX:+UseG1GC ^
-XX:MaxGCPauseMillis=200 ^
-XX:+HeapDumpOnOutOfMemoryError ^
-XX:HeapDumpPath=logs/heap_dump.hprof ^
-XX:ErrorFile=../logs/hs_err_pid%%p.log ^
-Dfile.encoding=UTF-8 ^
-Duser.timezone=Asia/Shanghai
echo JVM参数: %JAVA_OPTS%
echo.
java %JAVA_OPTS% -jar yudao-server.jar
pause