changing JAVA_OPTIONS value from -Xmx512M to -Xmx1024M

Jana picture Jana · Dec 13, 2016 · Viewed 8.3k times · Source

changing environment variable JAVA_OPTIONS value from -Xmx512M to -Xmx1024M didnt work. When I build my code in eclipse, it still says "Picked up _JAVA_OPTIONS: -Xmx512M". I even put -Xmx1024M in the program argument and VM argument at run configuration.

Can someone tell why it is still picking up -Xmx512M? is there any other changes i need to make?

Answer

Matteo Baldi picture Matteo Baldi · Dec 13, 2016

You have to set in eclipse.ini file after -vmargs:

-Xms512m
-Xmx1024m