How can you make the experience with Eclipse faster?
For instance: I disable all the plugins I don’t need (Mylyn, Subclipse, …).
Instead of using a plugin for Mercurial, I configure TortoiseHG as an external tool.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The three most influential factors for Eclipse speed are:
Note that David Balažic‘s comment (July 2014) contradicts that criteria which was working six years ago:
Launching it with the latest JDK (Java 14 at the time of writing, which does not prevent you to compile in your Eclipse project with any other JDK you want: 1.4.2, 1.5, 1.6 older…)
Configuring the eclipse.ini (see this question for a complete eclipse.ini)
The
Xmxargument is the amount of memory Eclipse will get (in simple terms). With-Xmx4g, it gets 4 GiB of RAM, etc.Note:
Dec. 2020, Udo confirms in the comments
See also
2024: As noted by dan1st might be happy again in the comments:
True: CDS, or Class Data Sharing, is a feature in the Java Virtual Machine (JVM) aimed at reducing the startup time of Java applications and the amount of memory they consume. It achieves this by allowing a set of classes to be pre-loaded and shared among multiple Java Virtual Machine (JVM) instances running on the same machine. The concept behind CDS is to create a shared archive of classes that can be mapped into memory at runtime, thereby speeding up the class loading process.
CDS was introduced in Java 5 (J2SE 5.0) in a basic form and has been gradually improved in subsequent Java releases.
The feature Dan mentions,
-XX:+AutoCreateSharedArchive, and the use of a specified shared archive file via-XX:SharedArchiveFile=, were significantly enhanced and made more accessible in Java 10 and later versions.Starting with Java 12, the ability to automatically create a shared archive on the first application run (with
-XX:+AutoCreateSharedArchive) simplifies the process, making it more beneficial for applications without needing manual intervention to create the shared class data archive.In the context of speeding up Eclipse or similar Java-based applications, CDS will help with faster startup time, reduced memory footprint and improved performance.
Your
eclipse.inifile would be (with Java 19 or later):Replace
<path_to_your_archive>with an appropriate path where you want the shared archive to be stored. The JVM will automatically create this archive on the first run and then use it to speed up subsequent startups.Furthermore, in case Lombok is installed in Eclipse, it is necessary to allow the use of CDS with agents by adding the diagnostic VM option
-XX:+AllowArchivingWithJavaAgent. In this case, theeclipse.iniwould contain something like: