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, 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