Java - Invalid maximum heap size
Asked Answered
W

1

8

When running project from IntelliJ IDEA I set VM options -XX:MaxPermSize=512m -Xmx=256m -Xms=256m and get the following error

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid maximum heap size: -Xmx=256m

Witticism answered 28/2, 2018 at 14:2 Comment(0)
W
11

Remove the equals sign after Xmx and Xms.

Correct VM options: -XX:MaxPermSize=512m -Xmx256m -Xms256m.

Witticism answered 28/2, 2018 at 14:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.