JVM heap size issue in openjdk 8.

Martijn Verburg martijnverburg at gmail.com
Tue Jul 16 12:17:26 UTC 2019


Hi Vijay,

This mailing list is for meta-discussion about OpenJDK itself. I'd
recommend posting your issue to StackOverflow with the full details of your
configuration files/setup.

Cheers,
Martijn


On Tue, 16 Jul 2019 at 11:32, Pandit (EXT), Vijay <
vijay.pandit.ext at siemens.com> wrote:

> 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