ML inference prioritizes low, predictable latency and consistent response times, often leading to smaller, more precisely tuned JVM heaps to minimize garbage collection pauses. While a larger heap can reduce GC frequency, it can also lead to longer pause times when GC does occur, impacting real-time performance. A common practice in containerized environments is to allocate 50-75% of the pod's total memory to the JVM heap, reserving the rest for non-heap memory and OS overhead.