Solution to slow eclipse startup and running

Source: Internet
Author: User

Prerequisites:
It is found that eclipse is getting slower and slower to start. When the android project libraries is imported, various red XX and small erythema will show a burst of goose bumps ...... It indicates that it cannot be tolerated.

Slow startup
There are two main causes of slow eclipse startup:
A. Read Hard Disk
B. Scary CPU utilization

Cause:
In both cases, the memory size is too small or the running parameters are set;
If it is the latter phenomenon, it is likely to be caused by excessive engineering garbage.

Solution Law Office:
1. The physical memory is too small. Otherwise, modify the runtime parameter settings in eclipse. ini under the eclipse installation directory:

Default heap size for eclipse startup 1g (increase the memory parameters according to the physical conditions of the local machine) Dual-core CPU
-Vmargs
-Xms40m
-Xmx256m
-Vmargs
-Xms128m
-Xmx512m
-XX: permsize = 64 m
-XX: maxpermsize = 128 m
-XX: + useparallelgc
Enables faster GC execution
(Jdk5 added)

 

 

 
2. Clear Project garbage:
Currently, the main spam detected is generated when the usage data recording plug-in Plug-In closes eclipse.
. Delete
Xxx321.csv file;
. Window-preferences-General-startup and shutdown. Remove this plug-in from the startup list (you can also remove it if you do not need it ).

Supplement:
A. The eclipse version may also be a factor affecting the speed. Use the official release version whenever possible.

B .. (disable Nic) in the SSH sub-item of window-preferences-General-network connection, eclipse automatically finds the local directory for storing the SSH key, and finds the local connection X. x. x. and add it to known hosts. In this way, every time eclipse starts, it will access this IP address, but it may be slow to start because of the long default timeout time of Eclipse. Delete x. x from a known host (known hosts), enable Nic, and OK.

/**

**************************************** ************************************

*/

Eclipse startup parameters (command arguments)
You can view help-installation details-configuration.

-Arch [processor architecture]
Description: Category of the processor used.
Example: eclipse-arch x86 or eclipse-arch iSCSI

-Application [ID]
Description: application to be run. The ID is the extension ID and extension ID of the org. Eclipse. Core. Applications extension point.
For example, if a plug-in ID is edu. SDU. app and the extension ID is MyApp, eclipse-application edu. SDU. App. MyApp will execute your extension application.

-Clean
Description: clears the plug-in cache content.
For example: eclipse-clean, sometimes the plug-in cannot be displayed because eclipse caches the plug-in to accelerate the startup process. If this parameter is specified, the cache is cleared and loaded from scratch.

-Configuration [cofigfile location]
Description: Location of the configuration file. The config. ini file in this directory is used for startup.
Example: eclipse-configuration D:/Eclipse/Configuration

-Data [workspace location]
Description: The workspace location at startup.
For example, if the workspace is located at D:/myworkspace, eclipse-data D:/myworkspace

-Debug [Option file]
Description: Start eclipse in debug state. All the debug switches are specified in the. Options file.
Example: eclipse-Debug D:/Eclipse/. Options

-Dev [classpath entry]
Description: starts eclipse in the development status. This adds all specified paths as classpath for each plug-in.
For example, for eclipse-dev bin, all classes generated under the bin directory are loaded into the class path, which is very useful in the development of plug-ins.

-Nosplash
Description: no pop-up screen is displayed at startup.
Example: eclipse-nosplash

-VM [JRE path]
Description: The Java Virtual Machine Used for startup.
For example, if you want to use your own Java virtual machine, you can use eclipse-VMD:/j2sdk1.4.2 _ 04/JRE/bin/java.exe to enable a console, the console information can be displayed. Of course, if you use eclipse-vm d:/j2sdk1.4.2 _ 04/JRE/bin/javaw.exe, the console information will not be displayed.

-Vmargs [Java VM arguments]
Description: The Java virtual machine parameters to be used at startup.
For example, if you want to specify the memory capacity to use, then eclipse-vmargs "-xms256m-xmx1024m"
Note: This parameter must be placed at the end of all parameter variables.

 

 

 

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.