tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Cheshire <cheshira...@gmail.com>
Subject Re: tomcat7 & tldScanJar warning
Date Mon, 15 Jul 2013 13:39:32 GMT
On Fri, Jul 12, 2013 at 9:38 AM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Chris,
>
> On 7/11/13 2:51 PM, Chris Cheshire wrote:
> > I am working on migrating from TC6 to 7, and noticed in the log
> > file the info messages about jars being needlessly scanned. Did all
> > my googling and stuff and added all the jars mentioned to the
> > catalina.properties file.
> >
> > All the warnings are gone, but it has done absolutely nothing to
> > improve startup time nor page compile time. For a setup with about
> > 12 hosts, and at least one context each it is still taking about 75
> > seconds to start up, give or take a couple of seconds every time,
> > and it still takes about 10 seconds to compile a page.
> >
> > The last couple of replies on
> > https://issues.apache.org/bugzilla/show_bug.cgi?id=51248 seem to
> > imply that doing so should increase performance, but I'm not seeing
> > it.
> >
> > Is there really any benefit to this that I am missing? It's
> > cumbersome editing this and restarting tomcat if I update a web app
> > and add have to add a new dependency.
>
> Are you using 3.0-compatible webapps? If so, try setting
> metadata-complete="true" in your <web-app> element: this will stop
> Tomcat from scanning the JAR files for other things (not just TLDs)
> and may improve startup time.
>
>

I changed the web.xml declaration to

<web-app version="3.0"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

If that is all I need to do then, yes.



> If you want to know what Tomcat is doing during those 75-seconds, take
> some thread dumps and read them.
>
>
Alright, I'll have a hunt around and find out what to do there. I'll also
change the TC logging some more and see what it spits out. All I changed
was the line for the TLD scanner

Thanks,

Chris

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message