How Eclipse resolves startup slow

Source: Internet
Author: User

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.

speed up startup 1. When eclipse starts, it always searches for the JRE it runs, often the search process slows eclipse startup. (When not set, such as 2-3s appear progress bar, set up directly after the progress bar)  
Span style= "LINE-HEIGHT:19PX;" >2. Cancels all plug-ins to be activated at startup (same as when active) and other related actions that are performed at startup.    
3. Turn off Automatic Updates  
Reduce problems with the eclipse card caused by JVM memory reclamation  

-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 behavior1. 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 SettingsThe 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 usesfile 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!!! Edit Org.eclipse.jface_3.7.0.i20110522-1430.jar\org\eclipse\jface\resource\jfacefonts_ directly  Windows7.properties replace it with the fonts in XP and restart Eclipse. After modifying, go to extract directory >e: >cd org.eclipse.jface_3.7.0.i20110522-1430
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, the jar file is overwritten, and restarting Eclipse is OK. (In the end there is a good jar file to download)

How Eclipse resolves startup slow

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.