Spring Toolbox is really slow

I am launching a Spring boot project using the Spring boot configuration to run / debug the application. It is very slow, even on a very powerful computer. It often goes away for a few seconds, not allowing the window to go to the forefront or restore the console from the maximum. Anyone have any suggestions as to what can make this so slow?

Spring Tool Suite Version: 3.8.4.RELEASE Build Id: 201703310825 Platform: Eclipse Neon.3 (4.6.3) 

on the new Core i7 with 32 GB of memory.

STS.ini has

 -startup plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740 -product org.springsource.sts.ide --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.8 -Xms1024m -Dosgi.module.lock.timeout=10 -Xverify:none -Dorg.eclipse.swt.browser.IEVersion=10001 -Xmx4096m -XX:PermSize=128m -XX:MaxPermSize=512m -XX:+UseParallelGC 
+9
source share
2 answers

The problem I encountered is related to themes after a recent upgrade from STS 3.7 to 3.9.5. After I disabled them using the following, most of the wait time disappeared.

Settings> General> Appearance> Enable Themes

Since I wanted the theme (Dark), I found that the most hidden operation was scrolling the console when the server started or switching to and from this view. I found the following error message and successfully disabled themed scrollbars by updating in e4-dark_win.css :

 StyledText { swt-scrollbar-themed: false; [...] 

In addition, I also had to disable:

Settings> Ansi Console

As well as:

Run settings (select Spring Boot application)> Spring Boot tab> ANSI console output

+8
source

The optimizer is definitely useful https://zeroturnaround.com/free/optimizer-for-eclipse/

but I also turned off almost all the checks, with the exception of a few significant

Click Window> Preferences and select Verify in the left pane. The Verification page of the Settings window lists the validators available in your project and their settings.

To disable individual validators, clear the check boxes next to each validator that you want to disable. Each validator has a checkbox to indicate whether it is enabled for manual validation or assembly.

These answers were really helpful: fooobar.com/questions/275120 / ... and fooobar.com/questions/1266801 / ...

0
source

Source: https://habr.com/ru/post/1266799/


All Articles