What can be the reasons that Spring STS hangs?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 07:51:14

问题


Sometimes on the start STS hangs.

Does it possible found the reason? May be exists log or possible start in debug mode? Also how I can distinguish between hangs completely and working very slowly? Thanks. P.S. How to fix ?


回答1:


That is usually for the same resons descibed here tricks-to-speed-up-eclipse. Garbage collection or validation.

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

  • Under Windows->Preferences->Validation you can switch off a lot of stuff.




回答2:


There's a log file I think it's in .metadata/.log in the workspace used. To see if memory causes the issue, and it usually does, try to run jconsole (part of the JDK) and connect to the running eclipse process, and see the memory stats.




回答3:


My STS hanged when I tried to start it. Couldn't tell why.

Doing this fixed things for me: Shut down eclipse and then navigate to /.metadata/.plugins/org.eclipse.core.resources and remove the .snap file.

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




回答4:


Ensure that STS is running with admin privileges to avoid permission problems.

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

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

Complete 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;


来源:https://stackoverflow.com/questions/8026120/what-can-be-the-reasons-that-spring-sts-hangs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!