Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: STS very slow in building workspace. "Loading *-context.xml". Network activity

  1. #21
    Join Date
    May 2008
    Posts
    14

    Default

    OK, it's attached as jstack.txt.

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

    Default

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

  3. #23
    Join Date
    May 2008
    Posts
    14

    Default

    Obviously, a fix would be great, but I'm desperate for any kind of workaround. What could I disable to stop this from happening?

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

    Default

    Hey!

    You can remove the Spring project nature, that could be a workaround, but it is the rather aggressive version of a workaround... ;-) I am working on a fix for this. Please attach some more thread-dumps to the bug in JIRA if you come across this issue. And maybe a full sample project would also be of great help for this!!!

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

  5. #25

    Default

    Hey,

    I just found that when I open the this *-context.xml in STS with Spring Config Editor and disable context in Namespaces tab the problem goes away... My question is how can this affect developing? I have configured VMware vFabric tc Server to have hot swap. Does this turning off the context in namespaces can cause any problems?

    Thanks in advance.

  6. #26
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,640

    Default

    Hey!

    You mean when you disable the context namespace in the Namespaces tab of an spring-config.xml file? That means that you did't use the "context" namespace in your config xml, but you had declared it and that slowed it down?

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

  7. #27

    Default

    Hey,

    This are my first steps with STS so after I disabled this context namespace in spring-config.xml my application didn't start up so i had to add it back I was thinking that is not editor for this file. I was thinking this is some validator setting. After searching in google for some solution I just turned off Spring builder (didn't turn off nature) and it works well for me. I've found no other satisfying solution.

  8. #28
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,640

    Default

    Hey!

    Ah, okay, good to know and thanks for the update. Is there any chance to get a sample projects that behaves so slow on your end? I really would love to see this slowdown on my end as well in order to find out what exactly causes this issue.

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

  9. #29
    Join Date
    Oct 2012
    Posts
    1

    Default

    I've solved the issue by removing all "Config Files" in the Spring "Beans Support" in the project properties.
    In case of Web Application, I had to disable Config Detection.(see attached image.)
    You might need to enable it only when you are working on Spring configurations.

    spring_sts_tip.jpg
    Last edited by sinihong; Oct 10th, 2012 at 11:26 PM.

  10. #30
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,640

    Default

    Hey!

    Can you capture a few thread dumps for us while STS slows down to dramatically when having those config files configured there? I hope that we can figure out what is going wrong with this in order to fix the root cause of this. Capturing some thread dumps is easy using jps and jstack while STS is slow. Would help us a lot!!!

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

Tags for this Thread

Posting Permissions

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