Setting -Xms equal to -Xmx pre-allocates the full JVM heap, eliminating dynamic resizing and ensuring consistent memory availability. This approach significantly reduces unpredictable GC pauses and improves P99 latency, which is crucial for stable real-time ML inference and training applications.