Skip to content

Commit

Permalink
将jre参数中的内存下调到20G
Browse files Browse the repository at this point in the history
  • Loading branch information
kressety committed Oct 22, 2023
1 parent 92729f7 commit 5d1a2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jre_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def add_jre_args(
server_path: str
):
with open(join(server_path, 'user_jvm_args.txt'), 'w') as file:
file.write('-Xms22G -Xmx22G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 '
file.write('-Xms20G -Xmx20G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 '
'-XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch '
'-XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M '
'-XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 '
Expand Down

0 comments on commit 5d1a2ea

Please sign in to comment.