JDK 64-Bit Server VM warning: Max heap size too large for Compressed Oops

Solution Verified - Updated -

Issue

  • I'm getting this error below when I set my max heap size to 32GB or higher and use -XX:+UseCompressedOops:
OpenJDK 64-Bit Server VM warning: Max heap size too large for Compressed Oops
Java HotSpot(TM) 64-Bit Server VM warning: Max heap size too large for Compressed Oops

Environment

  • Red Hat Enterprise Linux
  • Java
    • 1.7
    • 1.8
  • Red Hat JBoss Data Grid (JDG)
    • 6.5.0
  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content