More details about eclipse.ini

Let see more details about eclipse.ini

Eclipse startup is controlled by eclipse.ini file which comes by default installation under ECLIPSE_HOME/eclipse.ini.

Under eclipse.ini file we can provide JVM agruments and startup arguments and lauching libaries and etc.


Let see the default eclipse.ini file.


-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m


Uses of this eclipse.ini file.


  • In case if your workspace is failing during startup of Eclipse then try to increase MaxPermSize file from 256m to higher for example 512m or 1024m
  • If there is any certain crash of JVM and you will see some hs_err_pid file for that try to increase Heap size -Xmx512m to -Xmx1024m
  • If you upgrade your JDK or JAVA_HOME and want to use current JVM home in eclipse then try to use -vm option.


windows

-vm
C:\jdk1.7.0_21\bin\javaw.exe 

or 

-vm C:\jdk1.7.0_21\jre\bin\java.exe

Linux

 -vm
/opt/sun-jdk-1.6.0.02/bin/java


Mac OS

To specify Java 6 for OS X

 -vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java

For versions of Mac OS X 10.7+ the location has changed to

/Library/Java/JavaVirtualMachines/<''jdk_name_ver''>/Contents/Home/...

No comments:

Post a Comment