Results 1 to 2 of 2

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

  1. #1
    Join Date
    Dec 2011
    Posts
    3

    Default 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. #2
    Join Date
    Aug 2006
    Location
    Brooklyn
    Posts
    556

    Default

    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.

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
  •