

If you are getting OutOfMemoryError related to Heap space, then you can try to increase the maximum heap size available to eclipse. However you will also not get out of memory error because of permgen space. Note that there is no more Permgen space from Java 8 onwards, so setting this option will have no effect. Below is the configuration to increase permgen space to 512 MB in eclipse.ini file. , then you should increase Permgen space.
#Eclipse on mac update#
If you are getting : PermGen space error, mostly when you are working on larger code base, doing maven update for large projects etc. Just change the JDK bin directory path accordingly. You can configure it similarly for Windows or Linux operating systems.

Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/bin
#Eclipse on mac mac os#
My eclipse.ini file snippet showing -vm argument usage to configure eclipse to use JDK8 in Mac OS X. Permgen space default value is configured as 256MB that is good for small to medium projects.Įclipse.ini vm argument is useful when you have multiple JDK installation and you want to make sure that your eclipse runs on a specific JVM, rather than picking system configured jdk path. They are configured using VM arguments -XX:MaxPermSize, -Xms and -Xmx.

