Eclipse settings, tuning, using

Source: Internet
Author: User

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



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.


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)

Exception in Checkandloadtargetdata.permgen space solution

Http://hi.baidu.com/marsjin/blog/item/60756189fa65e4b00f244494.html

Transferred from: http://yuanzhifei89.iteye.com/blog/974082

Eclipse settings, tuning, using

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.