Eclipse Tuning
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
3. Close the saveaction. The action that will be performed on each save, which can be severely slow to save, especially when the file is large. In fact, as long as they develop good programming habits, it is not necessary at all.
4. Optimize code hints.
5.eclipse pressing the CTRL key to resolve the problem
When you edit around 30,000 lines of code in eclipse, eclipse often snaps for a long time when copying with ctrl+c/v.
Later found that just press the CTRL key to the card, I guess it should be because eclipse in the Ctrl-click to jump to the variable definition of the place, so when the CTRL key when the eclipse will go to generate this mapping, when the file is larger, this behavior will take more time, Very uncomfortable, after a look to know, you can set the shortcut keys by the following methods.
Eclipse--Windows->preferences->general->editors->text editors->hyperlinking:
Remove this option: Enable on demand Hyperlinks style navigation
Or you do not want to do the CTRL jump file is not selected!
Other optimized links
http://wcgdonot.iteye.com/blog/1380429
reference materials
JVM Startup Parameters Daquan: http://www.blogjava.net/midstr/archive/2008/09/21/230265.html
Some knowledge of the JVM structure (the composition of the heap): Http://hllvm.group.iteye.com/group/wiki/2905-JVM
JVM Heap Knowledge: http://ruijf.iteye.com/blog/1028455
Eclipse Startup tuning: http://www.iteye.com/topic/756538
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.
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 shows the plugin for startup time:
Look at this http://www.blogjava.net/shenh062326/archive/2011/10/16/361360.html.
////////////////////////////////////////////////////////////
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)
Exception in Checkandloadtargetdata.permgen space solution
Http://hi.baidu.com/marsjin/blog/item/60756189fa65e4b00f244494.html
Error notifying a preference change listener
Encountering this error, it means that Eclipse's CDT plugin is too old to solve this problem by removing the CDT-related plugin from plugin.
English website: http://www.velocityreviews.com/forums/t361244-eclipse-error-notifying-a-preference-change-listener.html
launch eclipse, prompting "Failed to create the Java Virtual machine"
May be the configuration file for Eclipse Eclipse/eclipse.ini
-xms512m
-xmx512m
These two parameters are too large to set a smaller value, such as 256
Configuration file location for all settings for Eclipse (where the settings are stored in window->preferences):
Workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
Eclipse settings, tuning, using