Java eclipse startup parameters

Source: Internet
Author: User

After referring to some materials, I have summarized some commonly used commands arguments during startup. If there are any errors, I hope you can point them out.
-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.

If you think your eclipse startup is slow (for example, over 20 seconds), you may need to adjust your eclipse startup parameters. Below are some "Tips ":

1. Check the JVM settings for starting eclipse. In HELP \ about eclipse SDK \ configuration detail, you can see the JVM that started eclipse. This JVM is different from the installed JDK you set in eclipse. If you start the JVM of eclipse or JDK 1.4, You 'd better change it to JDK 5 because JDK 5 has better performance than 1.4.

C: \ eclipse \ eclipse.exe-VM "C: \ Program Files \ Java \ jdk1.5.0 _ 08 \ bin \ javaw.exe"

2. Check the heap size used by eclipse. There is a configuration file eclipse. ini under the c: \ eclipse Directory, which configures the default heap size for eclipse startup.

-Vmargs
-Xms40m
-Xmx256m

So you can change the default value:

-Vmargs
-Xms256m
-Xmx512m

You can also change the heap size to 256-512.

C: \ eclipse \ eclipse.exe-VM "C: \ Program Files \ Java \ jdk1.5.0 _ 08 \ bin \ javaw.exe"-vmargs-xms256m-xmx512m

3. Other startup parameters. If you have a dual-core CPU, you can try this parameter:

-XX: + useparallelgc

Enables faster GC execution. (Only the newly added GC parameters in JDK 5)

Note:

There are several methods to start Eclipse:
0. Copy the JRE to the eclipse directory.
1. directly specify the parameter after the command line: eclipse-VM... This has been tried. Yes.
2. In the eclipse. ini file, add:-VM... This place-line feed is required after the VM.
3rd, you can search for javaw.exe in pathenvironment variation.

In other words, it is better to point to the bin \ javaw.exe In the JRE directory if javaw.exe is specified by the virtual machine.

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.