Advertisement
LU__LU

server.bat

Apr 7th, 2020
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.86 KB | None | 0 0
  1. @echo off
  2. title UHC
  3. chcp 65001
  4. :start
  5.  
  6. rem 請記得將 <記憶體> 取代為你想給予伺服器的記憶體大小。 範例: -Xms3G
  7. rem 重點! -Xms 與 -Xmx 請「盡量填寫一樣的數值」,否則可能會導致效能問題。
  8.  
  9. java -Xms<記憶體>G -Xmx<記憶體>G -Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch  -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=8 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=true -Daikars.new.flags=true -jar spigot.jar nogui
  10. goto start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement