What could be the reasons why Spring STS hangs?

Sometimes STS appears at the beginning.

Can I find a reason? Maybe there is a log or is it possible to run in debug mode? Also, how can I distinguish between freezes completely and work very slowly? Thank you Postscript How to fix?

+4
source share
4 answers

This is usually for the same reasons that are described here tricks-to-speed-up-eclipse . Collection or verification of garbage.

  • If you have enough RAM, I would suggest that you install -Xmx768m or higher (in eclipse.ini).

  • In Windows-> Preferences-> Validation, you can disable many things.

+2
source

There's a log file, I think it's in. metadata / .log in the used workspace. To find out if the problem caused memory, and usually it tries to start jconsole (part of the JDK) and connect to the running eclipse process and view the memory statistics.

+1
source

My STS hanged herself when I tried to launch it. I can’t understand why.

Doing this for me: Close the eclipse, and then go to /.metadata/.plugins/org.eclipse.core.resources and delete the .snap file.

Courtesy: https://doctorjw.wordpress.com/2011/12/05/eclipse-locking-upnot-responding-try-this/

0
source

Make sure that STS is an administrator to avoid permission issues.

In ubuntu, edit the following line in the STS.desktop startup file:

Exec=gksu /etc/springsource/sts-3.4.0.RELEASE/STS 

Complete the file:

 [Desktop Entry] Name=STS Comment=SpringSource Tool Suite Exec=gksu /etc/springsource/sts-3.4.0.RELEASE/STS Icon=/etc/springsource/sts-3.4.0.RELEASE/icon.xpm StartupNotify=true Terminal=false Type=Application Categories=Development;IDE;Java; 
-2
source

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


All Articles