View RSS Feed

Eclipse

Increasing Eclipse Memory’s setting for Android Project

Rate this Entry
by , 02-11-2012 at 02:49 PM (4156 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:

Java Code:
/Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini
Default memory parameters are as shown below.

Java Code:
-Xms40m 
-Xmx256m 
-XX:MaxPermSize=256m
Following settings are recommended for Android development.

Java Code:
-Xms128m 
-Xmx512m 
-XX:MaxPermSize=256m
The above settings set minimum memory size to 128 MB. The maximum size set in the above code is 512 MB.

After setting these memory parameters, restart Eclipse.

Submit "Increasing Eclipse Memory’s setting for Android Project" to Facebook Submit "Increasing Eclipse Memory’s setting for Android Project" to Digg Submit "Increasing Eclipse Memory’s setting for Android Project" to del.icio.us Submit "Increasing Eclipse Memory’s setting for Android Project" to StumbleUpon Submit "Increasing Eclipse Memory’s setting for Android Project" to Google

Comments