Yes this, don’t look at the RAM allocated to the Java session to see how much memory it is using, instead look in the JVM to see how much memory it has allocated and the high point of its actual allocation using the OS-allocated pool, don’t look at the OS-allocated pool itself as unused parts of this get paged out and don’t actually cost RAM anyway. Just the crappy way the JVM works. ^.^
2 Likes