cancel
Showing results for 
Search instead for 
Did you mean: 

JVM in local machine

Former Member
0 Kudos

Hi All,

please help me to resolve the following issue in my local.

Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Invalid maximum heap size: -Xmx4096M The specified size exceeds the maximum representable size. JVM exited while loading the application. Reloading Wrapper configuration...

Thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

VinayKumarS
Active Contributor
0 Kudos

adding to the avinash as he mentioned above. Also check if you have multiple jvms in your machine. Check javac -version and java -version.

Both should point to the latest java version. This you can check from the command prompt

former_member620692
Active Contributor
0 Kudos

Hi - It seems, you are using the 32-bit version of Java in your system. Please note that 32-bit version of Java does not support more than 2GB of heap size. Please uninstall Java in your system and install 64-bit version of Java.