I need to run my program in eclipse and i was hoping to speed up the process by increasing the memory size of eclipse but i’m confused about which settings to use.
this is my system:
Model Name: MacBook Air
Model Identifier: MacBookAir3,2
Processor Name: Intel Core 2 Duo
Processor Speed: 1.86 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache: 6 MB
Memory: 4 GB
Bus Speed: 1.07 GHz
and this is my current eclipse .ini:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.101.v20120109-1504
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=512m
-Xms1536m
-Xmx1536m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
What should I use at XX, Xms and Xmx?
Thanks
use those
-server -Xms3g -Xmx3g -Xmn1g -XX:MaxPermSize=256M -XX:ReservedCodeCacheSize=256m – XX:ThreadStackSize=2048
-XX:+HeapDumpOnOutOfMemoryError
-XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseFastAccessorMethods
-XX:CMSInitiatingOccupancyFraction=85 -XX:+UseCMSInitiatingOccupancyOnly
-XX:+CMSClassUnloadingEnabled -XX:+CMSParallelRemarkEnabled
-XX:+UseNUMA -XX:-UseBiasedLocking -XX:+UseTLAB -XX:+DoEscapeAnalysis -XX:+UseCompressedOops -XX:+TieredCompilation -XX:+OptimizeStringConcat -XX:+AlwaysPreTouch
That’s it)