original link: http://chaoxz2005.blog.163.com/blog/static/15036542013411105519685/in general, when you do not set up eclipse, the use of eclipse will always feel that the boot is slow, good card, in fact, as long as the relevant parameters of eclipse configuration, there will be a great improvement.
Faster start-up speed
1. When eclipse starts, it always searches for the JRE it runs on, often the search process slows eclipse startup. (When not set, wait for the 2-3s to appear the progress bar, after set up directly appears the progress bar)
Just add the-VM parameter to the Eclipse.ini.
2. Cancel all plug-ins to be activated at startup (same as when activation occurs) and other related actions that are performed at startup.
3. Turn off Automatic Updates
reduce problems with eclipse cards caused by JVM memory reclamation
This is mainly the JVM in the client mode, when the memory is collected, will stop all the other work, with the recovery to perform other tasks, during which eclipse is stuck. Therefore, the proper increase in the amount of memory requested by the JVM to reduce the number of times it is recycled or even not recycled, there will be a noticeable improvement in the card phenomenon.
The heap memory is set primarily by the following JVM parameters:
-xmx512m |
Maximum total heap memory, typically set to 1/4 of physical memory |
-xms512m |
The initial total heap memory, which generally sets it as large as the maximum heap memory, so that the heap size does not need to be adjusted based on the current heap usage |
-xmn192m |
Young with heap of memory, Sun is officially recommended for the entire heap of 3/8 |
Composition of heap memory |
Total heap memory = Young with heap memory + aged with heap memory + persistent heap memory |
Young with heap of memory |
When the object was just created, put it here. |
Old age with heap of memory |
Objects are placed here before they are actually recycled. |
Persistent with heap memory |
class file, meta-data, etc. |
-xx:permsize=128m |
Initial size of the persistent heap |
-xx:maxpermsize=128m |
Maximum size of the persistent heap, eclipse defaults to 256m. If you want to compile this kind of JDK, make sure to set this up very large, because it has too many classes. |
my configuration (2g memory for Notebooks):
There are other relevant parameters to look at the following reference material, very inspiring:
-XX:+USEPARALLELGC using concurrent memory reclamation
-XX:+DISABLEEXPLICITGC Disabling display memory recycling for System.GC ()
eclipse-related settings to reduce card behavior
1. Turn off automatic builds. When enabled, eclipse will automatically build the entire project for us every time you save it, so that for large projects, it will cause a lot of cards for each save. In fact, auto-build is completely unnecessary, as long as it is OK to build once before running, Eclipse will be built for us automatically before running, so shutting down is the smartest choice.
2. Turn off spell check settings
Eclipse comes with Help contents (search for "Running Eclipse" to find boot-related configuration)
Eclipse Settings
The use of Eclipse, in its help file has a detailed description of how to use, generally can go to look over there.
Code Folding Settings
shortcut key Settings
compiler errors, warning settings
Local History Settings
Code formatting Settings
Library Settings
Text Editor Settings
allow Eclipse to launch multiple instances
Working space Settings
XML Editor Settings
appearance Settings
code formatting style settings
prompt settings for mouse over code, etc.
Code hint Settings
template settings for generating files when creating new files
junit launcher settings. When developing Android, it is not possible to use Eclipse's built-in launcher, which must be provided with Android.
Eclipse uses
file Comparison
Eclipse column editing mode
search function (there is also a find/replace)
A file is opened several times, so that when you write code, you need to refer to different parts of the file, you do not need to roll over the
public methods for extracting public code into private
////////////////////////////////////////////////////////////
Eclipse Debug uses some
////////////////////////////////////////////////////////////
Debug's variable interface shows the 16-in, ASCII, and other forms of elementary variables
////////////////////////////////////////////////////////////
Eclipse FAQs and Solutions
////////////////////////////////////////////////////////////
Eclipse 3.7 Indigo under Win7 and Vista, Text Editor fonts cannot be changed to couriernew!!!
Direct Editing
org.eclipse.jface_3.7.0.i20110522-1430.jar\org\eclipse\jface\resource\jfacefonts_windows7.properties
replace it with the fonts in XP and restart Eclipse.
after modifying, go to unzip directory
>e:
>CD org.eclipse.jface_3.7.0.i20110522-1430
and then pack all the files.
jar-cfm Org.eclipse.jface_3.7.0.i20110522-1430.jar "meta-inf/manifest. MF "" org/"" meta-inf/". Api_description about.html plugin.properties
Finally, overwrite the jar file, and restart eclipse will be OK. (In the end there is a good jar file to download)
For more information:
Http://www.dajo.com.cn/a/boke/JAVA/2013/1221/228.html