Skip to content

Commit

Permalink
Merge pull request #1850 from GiganticMinecraft/addJVMOptions
Browse files Browse the repository at this point in the history
paper公式が推奨するjvm optionを追加する
  • Loading branch information
rito528 authored Feb 27, 2024
2 parents bc402a9 + 6e6dac9 commit 7440d75
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,18 @@ spec:
https://github.com/GiganticMinecraft/RandomTeleport/releases/download/for-1.18/RandomTeleport-1.0-SNAPSHOT.jar,
- name: JVM_OPTS
# ワールドマイグレーションをするとメモリリークが発生するため、Papermc公式が推奨しているJVM Optionを追加する
# ref: https://docs.papermc.io/paper/aikars-flags
value: >-
-javaagent:/jmx-exporter/jmx-exporter-javaagent.jar=18321:/jmx-exporter/jmx-exporter-config.yaml
-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200
-XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch
-XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M
-XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4
-XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs
-Daikars.new.flags=true
- name: COPY_CONFIG_DEST
# /config をサーバーディレクトリにコピーするようにする
Expand Down

0 comments on commit 7440d75

Please sign in to comment.