Wednesday, June 13, 2012

How to set java heap size in Eclipse?

We have 2 options:
1. Edit eclipse-home/eclipse.ini to be something like the following and restart Eclipse.
2. You can just run eclipse command with additional options at the very end. Anything after -vmargs will be treated as JVM options and passed directly to the JVM. JVM options specified in the command line this way will always override those in eclipse.ini. For example,
eclipse -vmargs -Xms64m -Xmx256m

No comments:

Post a Comment