Tuesday, March 23, 2010

Common Eclipse Startup Arguments

Working with more than one workspace, the following runtime parameters make life easier:

eclipse.exe -vm \software\jdk1.6.0_21\bin\javaw -data \workspaces\project1_space -showlocation -vmargs -Xms1024m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m

  • -vm: Explicitly specify which Java VM to use when running Eclipse
  • -data: Location of the workspace.
  • -showlocation: Displays the location of the workspace in the window title bar. Very useful if you have more than one workspace opened.
  • -vmargs X... : Used to increase memory (the example above is for Sun's/Oracle's JVM). Use the "jconsole" command to verify your needs for a specific workspace.

The argument "-clean" is handy if you face some configuration problems or need to restart Eclipse in consequence of a crash.

Note: You can also specify those parameters in the eclipse.ini. But then you are not able to apply them for each workspace individually.

No comments:

Post a Comment

And Feedback? Please post a comment: