Java heap memory parameter tuning - Xms Xmx parameters
Java heap memory parameter tuning
Some performance tuning articles suggest adjusting the - Xms and - Xmx parameters to the same value, considering that there is only one Java application on the physical server, and there is no need to gradually adjust the heap size with a small initial heap size. The opposite situation is not suitable if multiple Java applications are installed on a physical server, and these two parameters of the JVM should be different. Each JVM dynamically adjusts its heap size to maximize the utilization of physical machine memory.
- The size of the - Xms - Xmx parameter determines the GC interval and Pause Time. If the heap size is too small, the GC interval time and Pause Time will also be small; If the heap size is too large, the GC interval time is large and the Pause Time is also large. Try to find a balance point in specific situations.
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.