Results 1 to 5 of 5

Thread: [ sts-2.8.1.RELEASE ] getting extremely slow and then freezing STS window too frequen

  1. #1
    Join Date
    Jan 2012
    Posts
    22

    Default [ sts-2.8.1.RELEASE ] getting extremely slow and then freezing STS window too frequen

    I've been using sts-2.8.1.RELEASE a couple of weeks.
    Now it's getting extremely slow whenever I edit and save, and then window got stuck -- freeze the STS window.
    Thus I cannot use STS in this circumstances.
    Is there something wrong?

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    Hey!

    Can you check the memory settings for your STS instance? And maybe how much memory it actually uses (by enabling the heap monitoring in the preferences, you can a nice little heap indicator at the bottom right of the workbench window). It sounds like there could be a memory problem. The other inspection that you could do is to capture a stack trace while STS is being so extremely slow (while an operation takes ages to complete), using jps and jstack. That could help identifying performance or network problems.

    -Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  3. #3
    Join Date
    Jan 2012
    Posts
    22

    Default

    Hey.
    I couldn't find the a nice little heap indicator at the bottom right of the workbench window,
    but I just modified the STS.ini file for sts-2.8.1.RELEASE as follows:
    I don't know the meaning of each line, so I googled it and modified anyway.
    Could you explain each line?

    -Xmn128m
    -Xms1024m
    -Xmx2048m
    -Xss2m
    -XX:PermSize=128m
    -XX:MaxPermSize=512m
    -XX:+UseParallelGC

    ================================================== ==
    -vm
    /usr/lib/jvm/java-6-openjdk/bin/java
    -startup
    plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1. 100.v20110505
    -product
    com.springsource.sts.ide
    --launcher.defaultAction
    openFile
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xmn128m
    -Xms1024m
    -Xmx2048m
    -Xss2m
    -XX:PermSize=128m
    -XX:MaxPermSize=512m
    -XX:+UseParallelGC
    ================================================== ==

  4. #4
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

  5. #5
    Join Date
    Jan 2012
    Posts
    22

    Default

    Thanks a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •