3

I recently read about the -XX:+UseCompressedOops JVM option that allows to negate the overhead imposed by 64 bit JVM by storing compressed 64 bit Ordinary object pointers (aka OOPS).

It looks like it is recommended that we should always use this flag. So I was wondering if its being enabled by default in the recently released Jdk 8 ?

Mandar Pandit
  • 2,171
  • 5
  • 36
  • 58
meenag
  • 37
  • 1
  • 4
  • 1
    According to [this](http://javarevisited.blogspot.be/2012/06/what-is-xxusecompressedoops-in-64-bit.html) it has been enabled by default in Java 6 Update 18: although [this](https://community.oracle.com/message/10019916) states it is only in 6u23. This would indicate it is still enabled by default since I didn't find any evidence to the contrary. – Jeroen Vannevel Jun 14 '14 at 16:54
  • 3
    `-XX:+UseCompressedOops` is ON by default in JDK8 when Java heap sizes are less than 32 GB. – knowbody Jun 14 '14 at 16:57
  • @JeroenVannevel, knowbody Thanks a lot.. After upgrading my dev environment to Java 8 64 bit JVM I was experiencing high memory usage, started wondering if I can do anything about it and came across this JVM flag. – meenag Jun 14 '14 at 17:13

0 Answers0