facebook
Mauricio Valenzuela
I'm an IT Engineer who loves Music, Videogames and Memes.
Posted on Jun 25th 2019

Microsoft’s Windows Security has been making Eclipse/MyEclipse startup very slow, but Windows allows you to add exclusions for trusted applications and bypass the scan for a faster startup. This is how you Stop slow Eclipse/MyEclipse startups on Windows 10. 

Note: The techniques discussed in this article will apply to all Eclipse-based IDEs, like Angular IDE, Spring Tool Suite and Red Hat Developer Studio.

As you can see in the next screenshots, the idle Windows Defender CPU usage is barely noticeable; however, when opening Eclipse/MyEclipse, it suddenly starts using a lot of resources, making the startup slow for most users.

CPU before starting Eclipse

Thanks to Windows Defender the CPU usage increases from 15-20 percent.

CPU after starting Eclipse

The good thing is that Windows Security allows adding exclusions to certain processes and directories that we trust, so we can exclude Eclipse/MyEclipse and bypass the scan.

Fix Automatically

We have integrated a way to automatically fix this issue in our products (MyEclipse, CodeMix, Angular IDE and DevStyle). You will see a dialog similar to the following: 



If you are on an older version that doesn’t have this capability, or wish to make the changes manually, following is a list of steps to add exclusions to Windows Security. This process shouldn’t take more than 5 minutes and will save a lot of time in the future.

Manual Steps:

  1. Open Windows Settings, either by right-clicking the Start icon on the taskbar and selecting Settings or by typing Settings on the Start Menu.  
  2. From Windows Settings, select Updates & Security. Windows Settings
  3. On the left sidebar, select Windows Security.   
  4. From Windows Security, under Protection areas select Virus & threat protection. Windows Security Panel
  5. Inside Virus & threat protection settings, select Manage settings.
    Virus & threat protection settings
  6. On Virus & threat protection settings, scroll down until you see Exclusions and select Add or Remove exclusionsExclusions
  7. Select Add an exclusion then select Folder.
  8. We will need to select the directory where we have installed Eclipse/MyEclipse, also the folder containing our Workspaces.
  9. There is also another set of directories that should be excluded in case we have them, these directories are:

Folder

Default Location

Git folder

<user.home>/git

Gradle folder

<user.home>/.gradle

CodeMix Extensions

<user.home>/.codemix-store/extensions

CodeMix Storage

<user.home/.codemix-store

M2E Repository

<user.home>/.m2/repository

Conclusion

This will fix the long loading times, and decrease the CPU load, making a faster and better experience for us. Whatever distribution of Eclipse you use, I hope this mini-guide helps improve your experience. Please let us know what you think via Twitter or through our forums.

On a remote dev team? Try CodeTogether—it’s free!

• Live share IDEs & coding sessions
• See changes in real time
• Cross-IDE support for VS Code, IntelliJ & Eclipse
• Guests join from Browser or IDE
• End-to-end source encryption


www.codetogether.com