Hello Blake, On Wed, Apr 13, 2022 at 6:34 PM Blake McBride <blake1...@gmail.com> wrote: > > Thanks, Thomas. > > I tried putting the following in conf/context.xml > > <JarScanner scanClassPath="false"> > > <JarScanFilter tldSkip="*.*"/> > > </JarScanner> > That worked. However, that seems to match the Tomcat 8 docs and not the > Tomcat 9 docs. I will try figuring out the Tomcat 9 configuration as soon > as I get a chance. > Just curious, is that not working in Tomcat 9?
There is another way to control the same thing. In /conf/catalina.properties you can use following property to stop scanning for TLDs: tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar But please remember, values of tomcat.util.scan.StandardJarScanFilter.jarsToScan property will override it. > If you know the Tomcat 9 equivalent, that would be really helpful. > > Thanks! > > Blake > > > On Wed, Apr 13, 2022 at 1:59 AM Thomas Hoffmann (Speed4Trade GmbH) > <thomas.hoffm...@speed4trade.com.invalid> wrote: > > > > -----Ursprüngliche Nachricht----- > > > Von: Blake McBride <blake1...@gmail.com> > > > Gesendet: Dienstag, 12. April 2022 22:31 > > > An: Tomcat Users List <users@tomcat.apache.org> > > > Betreff: How can I stop scanning TLD's? > > > > > > Greetings, > > > > > > When booting my app, the system takes a long time to get past: > > > > > > 12-Apr-2022 20:21:18.648 INFO [main] > > > org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was > > scanned > > > for TLDs yet contained no TLDs. Enable debug logging for this logger for > > a > > > complete list of JARs that were scanned but no TLDs were found in them. > > > Skipping unneeded JARs during scanning can improve startup time and JSP > > > compilation time. > > > 12-Apr-2022 20:21:18.694 INFO [main] > > > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web > > > application directory [/home/arahant/tomcat/webapps/host-manager] has > > > finished in [277] ms > > > 12-Apr-2022 20:21:18.695 INFO [main] > > > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web > > > application directory [/home/arahant/tomcat/webapps/arahant] > > > Apr 12, 2022 8:21:20 PM org.apache.jasper.servlet.TldScanner scanJars > > > INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable > > > debug logging for this logger for a complete list of JARs that were > > scanned > > > but no TLDs were found in them. Skipping unneeded JARs during scanning > > > can improve startup time and JSP compilation time. > > > > > > I guess it is scanning for TLD's. I'm not completely sure what that is > > but if > > > possible, I'd like to bypass that step as much as possible. > > > > > > Some facts: > > > > > > 64-bit Linux > > > Apache Tomcat/9.0.62 > > > Java 8 > > > > > > My app is pretty large - about 10,000 classes and over 100 jar files. I > > suppose > > > scanning all of those files is what is taking so long. > > > Most of the cases JAR scanning takes long time but to find root cause of slow Tomcat startup - take some thread dumps in few seconds interval and analyze them later to find where thread is spending most of the time OR attach a profiler to find hotspots. > > > My app is dumb html and javascript files that communicate via SOAP and > > > REST. There is no JSP. > > > > > > Thanks for the help! > > > > > > Blake McBride > > > > Hello Blake, > > > > does this setting help out? > > https://tomcat.apache.org/tomcat-9.0-doc/config/jar-scan-filter.html > > > > Greetings, Thomas > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > Thanks & Regards, Suvendu --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org