Increasing Eclipse Memory’s setting for Android Project
by, 02-11-2012 at 02:49 PM (4265 Views)
The Android project has a large size and it causes memory issues while compiling this project. To avoid such memory issues, increase memory size. To increase the memory size, edit “eclipse.ini” file. This file is located at following location:
Default memory parameters are as shown below.Java Code:/Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini
Following settings are recommended for Android development.Java Code:-Xms40m -Xmx256m -XX:MaxPermSize=256m
The above settings set minimum memory size to 128 MB. The maximum size set in the above code is 512 MB.Java Code:-Xms128m -Xmx512m -XX:MaxPermSize=256m
After setting these memory parameters, restart Eclipse.