Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Max value of Xmx and Xms in Eclipse?

My settings for these values in eclipse.ini are:

-Xms768M -Xmx1024M 

When setting them higher, Eclipse doesn't start anymore. Is there a way to increase these values without Eclipse crashing?

like image 249
Lieven Cardoen Avatar asked Nov 29 '10 13:11

Lieven Cardoen


People also ask

What is the maximum heap size in eclipse?

Heap starts at default initial value and grows to a maximum of 256 MB.

What is Xms and XMX in eclipse ini?

The flag Xmx specifies the maximum memory allocation pool for a Java virtual machine (JVM), while Xms specifies the initial memory allocation pool. The Xms flag has no default value, and Xmx typically has a default value of 256 MB.

What is max value for XMX in Java?

The Xmx value is half the available memory with a minimum of 16 MB and a maximum of 512 MB.


1 Answers

The maximum values do not depend on Eclipse, it depends on your OS (and obviously on the physical memory available).

You may want to take a look at this question: Max amount of memory per java process in Windows?

like image 97
Guillaume Avatar answered Sep 28 '22 09:09

Guillaume