Friday, September 30, 2011

Eclipse settings for performance improvement

If you use eclipse, I am sure you have come across moments when you banged your head waiting for eclipse to respond.
By applying following settings, your eclipse performance should become bad, which otherwise is worst! (There is no such thing in this world called "Good Eclipse performance".)

Update your eclipse.ini file (in your <ECLIPSE-HOME> directory) with following settings.
(VERYIMPORTANT: Do NOT miss to update the “-vm” parameter (in bold below) to your own <JAVA_HOME>)

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
-showlocation
-vm
C:\PROGRA~1\Java\jdk1.6.0_20\jre\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512M
-Xmx512M
-Xss128k
-XX:NewSize=128M
-XX:MaxNewSize=128M
-XX:PermSize=128m
-XX:MaxPermSize=128m
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=70
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-XX:CompileThreshold=5
-Dcom.sun.management.jmxremote

After applying these settings, if you ever get StackOverflowError, increase the value of “-Xss” to 192m (or 256m, if required).
To understand the significance of “-Xss” parameter, read this post on my blog.
Enhanced by Zemanta

No comments:

Post a Comment