Jul 19th, 2011, 04:39 AM
Deploy, debug and Startup of Tomcat inside of STS is extreme slow on Mac
I use a Mac (Intel Core i7 2.66GHZ, 4GB Ram, JDK 1.6.0_26).
For running and debugging my Spring application I use a Tomcat 7.0.14.
If I try to debug my Application (Debug As -> Debug on Server) It take about 2.5 minutes to come up and I see a lot of this messages :
INFO: No TLD files were found in [jndi:/localhost/biz-war/WEB-INF/lib/spring-test-3.0.5.RELEASE.jar]
This message appear with all jar's in my /localhost/biz-war/WEB-INF/lib directory.
Start up the Tomcat from command line with the same war it take about 10 seconds.
Also non of this messages " No TLD files were found in" appear in the logfile.
Any idea what is going wrong on my machine with STS ?
Jul 20th, 2011, 11:15 AM
Not quite my area but thought I'd chip in. Are you using exactly the same instances on the command line and inside STS? I noticed this issue related to TLDs which discusses recent changes:
It mentions a couple of options that are described here:
having tldValidation on will incur a performance penalty. Looks like it is ON inside STS and off outside? Maybe search around to see if that is set on your instance inside STS?
Jul 21st, 2011, 01:59 AM
thanks for your replay. The TDL scan has nothing to do with my problem.
The good news is my problem disappear since I installed STS 2.7.1 (springsource-tool-suite-2.7.1.RELEASE-e3.7-macosx-carbon-installer.dmg).
Before I used a STS 2.6.1 which was auto updated to 2.7.1.
I guess some thing went wrong in the update process.
Now my Tomcat Startup and redeploy work with computer speed again ;-))