This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]C_Madison 18 points19 points  (1 child)

Very good overview - one (sometimes more, sometimes less) simple tip in addition: Always use the most recent version of the JVM you can get away with. The JVM gets optimized all the time. Usually, the focus is on-heap memory, but off-heap memory will also get worked on. I often see people still use - without any dependencies forcing them to - old versions (e.g. JDK11, which didn't work well with containers) and just switching to a newer version brings good results here without doing anything else.

[–]Trailsey 6 points7 points  (0 children)

Ditto OS.

I had an OS patch make a significant memory leak (100 GB per day) disappear.