JVM heap size issue in openjdk 8.
Pandit (EXT), Vijay
vijay.pandit.ext at siemens.com
Tue Jul 16 13:28:24 UTC 2019
Thanks Andrew for you response.
Below is the command:
D:\UDU\scf\openJDK\rfx>java -version
openjdk version "1.8.0_40"
OpenJDK Runtime Environment (build 1.8.0_40-b25)
OpenJDK Client VM (build 25.40-b25, mixed mode)
Is this 32 bit or 64 bit JVM ?
Thanks
Vijay
-----Original Message-----
From: Andrew Haley <aph at redhat.com>
Sent: Tuesday, July 16, 2019 6:51 PM
To: Pandit (EXT), Vijay (DI SW LCS APPS SA&S) <vijay.pandit.ext at siemens.com>; discuss at openjdk.java.net
Subject: Re: JVM heap size issue in openjdk 8.
On 7/16/19 11:31 AM, Pandit (EXT), Vijay wrote:
> 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" />
Are you sure you're not running a 32-bit JVM? What does java -version say?
It should say this:
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04) OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
not this:
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04) OpenJDK Server VM (build 25.212-b04, mixed mode)
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com> https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the discuss
mailing list