5

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.

Kanhu
  • 138
  • 2
  • 10
  • Check the logs, maybe it say something. Also try switch into an empty workspace, maybe something is slowing it down (eg: indexing maven repository). – gerrytan Jan 31 '14 at 06:08
  • Thanks @gerrytan, i checked my log file (workspace\.metadata\.log) Here is below exception : -java.net.UnknownHostException: download.springsource.com – Kanhu Jan 31 '14 at 06:24
  • Is there any other place to check log file. – Kanhu Jan 31 '14 at 06:27
  • SSD is your choice. Even for my 7-years old Vaio with new SSD it started loading and working times faster. – Alex K. Jan 31 '14 at 08:37

3 Answers3

13

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 :) .

Jayasagar
  • 2,046
  • 19
  • 22
  • 1
    Thanks @Jayasagar, Your information's are really so helpful. I tried all of yours steps,but I don't realized any change. – Kanhu Jan 31 '14 at 09:39
  • 1
    May be you can try one more 'Disable virus scanners, or at least configure any virus scanner to not scan JAR files of your application and Eclipse on read access' – Jayasagar Jan 31 '14 at 10:24
  • I installed MacAfee in my PC. Can you please tell me, how to restrict not to scan JAR files. – Kanhu Jan 31 '14 at 10:40
  • 1
    Thanks @Jayasagar,STS now start normally by disabling my antivirus. My Friend is there any alternate solution rather than "Disable virus scanners". – Kanhu Jan 31 '14 at 10:45
  • This helped me a lot! – WPW Aug 25 '23 at 14:55
2

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
Spear A1
  • 525
  • 1
  • 7
  • 20
0

STS is based off eclipse so some the answers on this site re speeding up eclipse will help.

  • I noticed a great speed up by installing a Solid State Drive. This speeds up your whole machine.

  • Using the latest oracle JDK speeds things up for me too.

Community
  • 1
  • 1
Paul Whelan
  • 16,574
  • 12
  • 50
  • 83