JVM heap size issue in openjdk 8.

Pandit (EXT), Vijay vijay.pandit.ext at siemens.com
Tue Jul 16 10:31:32 UTC 2019


Hello Team,

Currently my application is compiling using Oracle JDK 7 version and ANT 1.9.5 is used as build tool.

I need to migrate it to openjdk 8. I had set path to openjdk 8 and when try to build it is giving me error as below :

     [java] Error: Could not create the Java Virtual Machine.
     [java] Error: A fatal exception has occurred. Program will exit.
     [java] Invalid maximum heap size: -Xmx4096M
     [java] The specified size exceeds the maximum representable size.

In my ant script I am using as below:

<jvmarg value="-Xmx4096M" />


Please help me to fix this issue.

Thanks
Vijay Pandit


More information about the discuss mailing list