JVM fails to start with 'The specified size exceeds the maximum representable size.'

Solution Verified - Updated -

Issue

When using 64-bit JRE 6, the JVM fails to start with the following error when Xmx, maximum heap, goes above 2872m:

        Invalid maximum heap size: -Xmx4096m
        The specified size exceeds the maximum representable size.
        Could not create the Java virtual machine.

Environment

  • 64-bit Solaris SunOS 5.10
  • Oracle JDK

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.