32-bit Java Jun 2026

Modern 64-bit JVMs can use "Compressed Ordinary Object Pointers" to store references as 32-bit values internally, reducing memory overhead. This narrows the gap, but doesn't eliminate all differences.

java -version

For heap < 1.5 GB, 32-bit can be faster. Above that, 64-bit is mandatory. 32-bit java

Even with -Xmx2048m set, you may see: