Performance Optimization: Difference between revisions
No edit summary |
No edit summary |
||
Line 36: | Line 36: | ||
-Xms, -Xmx, -XX:NewSize=, -XX:MaxNewSize= handle the allocation of RAM. | -Xms, -Xmx, -XX:NewSize=, -XX:MaxNewSize= handle the allocation of RAM. | ||
-Xms is used to set the minimum memory, and -Xmx is used to set the maximum memory allocation. | -Xms is used to set the minimum memory (initial heap), and -Xmx is used to set the maximum memory (maximum heap) allocation. | ||
-XX:NewSize and -XX:MaxNewSize should be set to 25% and 50% of -Xmx respectively. | -XX:NewSize and -XX:MaxNewSize should be set to 25% and 50% of -Xmx respectively. | ||
Line 52: | Line 52: | ||
-XX:+UseConcMarkSweepGC denotes the type of GC that should be used. This type has been deprecated in Java 9 (Minecraft 1.7.10 runs in Java 8). Do not use this argument for 1.12 or newer, it explicitly does not work in version 1.17. | -XX:+UseConcMarkSweepGC denotes the type of GC that should be used. This type has been deprecated in Java 9 (Minecraft 1.7.10 runs in Java 8). Do not use this argument for 1.12 or newer, it explicitly does not work in version 1.17. | ||
===== Unused Options ===== <!--T:13--> | |||
-XX:MaxGCPauseMillis=<N>: sets a garbage collection maximum pause target based on n being milliseconds. Automatically tries to adjust heap sizes to meet demands. | |||
== Performance Optimization Using Mods == <!--T:13--> | == Performance Optimization Using Mods == <!--T:13--> |