OutOfMemoryError in Eclipse | Java Virtual Machine (JVM)
Posted: | Categories: IDE, Java, Programming | Tags: Eclipse, JVM
OutOfMemoryError in Eclipse | Java Virtual Machine (JVM)
It might happen that while running a Java application within the Eclipse environment you get an OutOfMemoryError due to the maximum amount of memory dedicated to the heap. You can fix it by increasing the minimum (-Xms parameter) and maximum (-Xmx parameter) heap size. You can do it in two different ways:
- By editing your eclipse.ini file you find under your Eclipse installation directory. Within that file you should find two lines similar to the following ones:
-Xms40m ** -Xmx512m**
Read more...