Skip to content

Commit 4c2b458

Browse files
authored
chore: Clarify use of script generator within aikar's flags page (#390)
1 parent 054cf92 commit 4c2b458

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

docs/paper/admin/how-to/aikars-flags.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,15 @@ description: Aikar's flags are a set of JVM flags designed to improve the perfor
77

88
## Recommended JVM startup flags
99

10-
Use these flags exactly, only changing `Xmx` and `Xms`. These flags work and scale accordingly to any
11-
size of memory.
10+
:::warning[Script Generator]
1211

13-
For an automated script to generate these flags for you, see
14-
our [Script Generator](/misc/tools/start-script-gen).
12+
**This page only serves as an explanation page.** If you want to generate a start script, please visit
13+
our **[Script Generator](/misc/tools/start-script-gen)**.
14+
15+
:::
1516

1617
```bash
17-
java -Xms10G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200
18-
-XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch
19-
-XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M
20-
-XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4
21-
-XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90
22-
-XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem
23-
-XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs
24-
-Daikars.new.flags=true -jar paper.jar --nogui
18+
java -Xms10G -Xmx10G -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 -jar paper.jar --nogui
2519
```
2620

2721
:::danger[Do not allocate all of your available memory on a shared host!]

0 commit comments

Comments
 (0)