jvm – Invalid maximum heap size

jvm – Invalid maximum heap size

You are using 32 bit VM (Java HotSpot(TM) Client VM) which can be mapped to maximum 4G (Only 2 GB in reality) 2^32 address locations Maximum Java heap size of a 32-bit JVM on a 64-bit OS

Error message suggest you are using 5GB heap memory which is not supported on 32 bit architecture

Invalid maximum heap size: -Xmx5096m
The specified size exceeds the maximum representable size.

Could not create the Java virtual machine.

You can modify the -Xmx parameter to use anythinng <=2g should work here

I just encountered the problem and solved it by downloading the windows 64-bit JAVA.

Please check whether your windows version is 32-bit or 64-bit, and download the right version of JAVA.

jvm – Invalid maximum heap size

Leave a Reply

Your email address will not be published.