Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

-XX:MaxRAMFraction=VALUE not taking decimal

3022096Aug 28 2015 — edited Aug 28 2015

Hi,

I try to give my App the MaxRAMFraction of about 80%. This is only possible by using 1.25 as VALUE:

-XX:MaxRAMFraction=1.25

I get this exception:

Improperly specified VM option 'MaxRAMFraction=1.25'

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

It will not work with 1,25 or any decimal number either. So it is impossible to give my app more than 50% available RAM? (only able to use 2 and all positive integers as VALUE successfully so far) I need to use this value and not -Xmx because I don“t know the amount of RAM my Client Computers will have.

Thanks for help,

Michael

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2015
Added on Aug 28 2015
0 comments
753 views