On 21/11/2013 13:20, Robert Olofsson wrote:
> Hi!
> 
> I have tried to upgrade our system to more modern tomcat (from 7.0.28) to
> 7.0.47 and we also get the slow startup due to annotations processing.
> In my case it makes tomcat startup go from < 1 second to ~8 seconds and
> for development that is annoying, even if it is not critical for
> production servers.
> This system has ROOT+one webapp. The webapp is not very large, but there
> are
> 350 jars in WEB-INF/lib.
> 
> Setting metadata-complete="true" has very little affect (it shaves of
> about 0.5
> seconds)
> 
> As I understand it this has been a known problem since january, anyone know
> if there is an open bug on it or a plan to fix it?

You appear to be complaining about specification mandated behaviour. The
scan is required as soon as there is an SCI that declares an interest in
a class.

One might equally ask if you have any plans to fix your poorly
configured application.

> Is there any suggestions on what to do more to get a faster startup?

Use <absolute-ordering /> since that will exclude every JAR from the
annotation scan for matches to the SCIs.

If you need the SCI scan for some of the JARs you'll have to work with
Tomcat's tomcat.util.scan.DefaultJarScanner.jarsToSkip property.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to