Announcement Announcement Module
Collapse
No announcement yet.
Eclipse Tomcat restart slow in debug mode with <mvc:annotation-driven/> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Eclipse Tomcat restart slow in debug mode with <mvc:annotation-driven/>

    Not sure this is the right place to post but here goes.

    I have a simple prototype Spring 1.0/Hibernate 3.6 application, run on Tomcat inside Eclipse (Helios).

    It starts in about 4 seconds except when in debug mode and with <mvc:annotation-driven/> set, in which case it takes 60-70 seconds. This is inconvenient for testing and I'm worried about what happens when the application grows.

    Normally, starting in debug mode or not makes little difference for Tomcat applications inside Eclipse.

    Any suggestions please?

  • #2
    Turn up logging, does it hang at a particular message? Do '$JAVA_HOME/bin/jstack -l <pid> > out.txt' a few times while it's hanging to get a thread dump and see where it's hanging. You can use '$JAVA_HOME/bin/jps' to get a list of java process ids.

    Comment

    Working...
    X