Eclipse PDT
Configuring Eclipse Memory
07-Jan-2009 20:33:25
![]()
Configuring more memory for your java JVM to use for your running java application, in this case eclipse.
- Change paramenters in ~/.eclipse/eclipserc
- This is great for picking the java jvm without editing any files that have strictor permissions
# ~/.eclipse/eclipserc
#Running Eclipse Options
#http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html
#http://help.eclipse.org/help21/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/running_eclipse.htm
# Which JRE to run Eclipse
#JAVA_HOME=/usr/lib/jvm/java-6-openjdk - libjvm problematic frame
#JAVA_HOME=/usr/lib/jvm/java-6-sun - libjvm problematic frame
# no crashes yet
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
# Arguments to Java Machine running Eclipse
VMARGS="-Xmx1024m"
OR
Change your file "/usr/lib/eclipse/eclipse.ini". This will change the startup parameters.
# you may have to change permissions to the file - "sudo chmod 777 /usr/lib/eclipse/eclipse.ini"
#eclipse.ini file - changes start up parameters
-vmargs
-Xms512m
-Xmx1024m
-XX:PermSize=128m
-XX:MaxPermSize=512m
Or
Change the way it start up with "/usr/bin/eclipse"
# you may have to change permissions to the file - "sudo chmod 777 /usr/bin/eclipse"
#/usr/bin/eclipse - bottom of file
exec /usr/lib/eclipse/eclipse \
-vm "${JAVACMD}" \
-install "${INSTALL}" \
-startup "${STARTUP}" \
${CMDLINEARGS} \
-vmargs -Djava.library.path=/usr/lib/jni \
-Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db \
-Dgnu.gcj.runtime.VMClassLoader.library_control=never \
-Dosgi.locking=none ${VMARGS} \ # <-add "\" too
-XX:PermSize=512M -XX:MaxPermSize=1024M
#ADD -> -XX:PermSize=512M -XX:MaxPermSize=1024M like the line above
#this is the one I use on my ubuntu amd64, force quit to see if it loaded
#(memory sizes represent start with minimum MB to and go to maximum MB)
Or
Change the eclipse parameters from command line. This a good way to trace a class not loading correctly.
#command line
eclipse -XX:PermSize=128m -XX:MaxPermSize=512m
| Reply Comment | ||
| |
||
| |
||

