Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

STS taking long time to start

Can any one please suggest, Why STS(Version: 3.4.0.RELEASE) taking long time to start.

My PC Deatails:

  • Window 7,
  • Ram : 4GB,
  • i3 processor,
  • 32 bit O.S

STS.ini Details:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130807-1835
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vmargs
-Dorg.eclipse.swt.browser.IEVersion=10001
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-Dorg.eclipse.swt.browser.IEVersion=10001

I already searched for this issue but i can't got any good solution,any help is really appreciated.

like image 214
Kanhu Avatar asked Dec 16 '22 02:12

Kanhu


2 Answers

May be you can try following

  • Increase from -Xms40m to -Xms500m. It indicates jvm to start with 500 Mb memory.
  • Try with STS –clean
  • Remove file <WORK_SPACE>/.metadata.plugins\org.eclipse.core.resources.projects\.markers.snap, because sometimes eclipse will constantly polling a fairly large snapshot of some of your projects.
  • You can disable ‘Refresh workspace on startup’ option in Windows -> Preferences -> General -> Startup and Shutdown
  • Disable automatic builds under Install/updated and Label Decorator
  • Upgrading to the latest JVM supported on your machine this may help as well
  • Disable all validations under preferences unless you need them

enter image description here

I hope these tips will help you for sure :) .

like image 151
Jayasagar Avatar answered Dec 29 '22 00:12

Jayasagar


My STS was taking a long time, 5 minutes just to boot up, in spite of running on a high performance SSD machine. So I modified the STS.ini with Xms=200m(original value was 40m) and it started booting up real fast in under 30 seconds.

-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-SYSTEM
-Xms300m
-Dosgi.module.lock.timeout=10
-Dorg.eclipse.swt.browser.IEVersion=10001
-Xmx1200m
like image 39
Spear A1 Avatar answered Dec 29 '22 00:12

Spear A1