2013年7月17日星期三

How to improve eclipse performance for starting

Increase the following Java virtual memory (-vmargs) settings:
Xms Initial size (bytes) of the memory allocation pool. This value must be a multiple of 1024, greater than 1 MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. 
Xmx Maximum size (bytes) of the memory allocation pool. This value must a multiple of 1024, greater than 2 MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.
XX:MaxPermSize Maximum size of Permanent Generation
XX:PermSize Initial size of Permanent Generation
Follow these steps to increase the Java virtual memory settings.

Ensure that Eclipse is not running on your computer.
Locate and open the eclipse.ini file, as applicable, on your computer. The .ini file is located within your Eclipse installation directory.
Change or add the following Java -vmargs settings in the eclipse.ini file:
Xms256m
Xmx512m
XX:MaxPermSize=256m
XX:PermSize=64m
Save the file and restart Eclipse, as applicable.

For more information:
  • http://wiki.eclipse.org/Eclipse.ini
  • http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse
  • http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse
  • http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

没有评论:

发表评论