How to minimize Java process size
Issue
- JVM does not release memory back to OS
- We have a burstable memory configuration. After the job completes the JVM does not garbage collect the heap, or if it does, it doesn't reduce the heap size and release that memory back to the OS.
- We want the JVM to release the memory for other containers to use.
- RSS is much larger than Native Memory Tracking (NMT) output.
Environment
- OpenJDK
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.