Tomcat start up spends a lot of time in TldConfig.tldScanResourcePaths

Solution Verified - Updated -

Issue

  • Tomcat start up is slow and takes long to deploy our application. It shows a lot of time spent in TldConfig.tldScanResourcePaths:
"localhost-startStop-1" #14 daemon prio=5 os_prio=0 tid=0x00007fd008002000 nid=0x1bfe4 runnable [0x00007fd02847f000]
   java.lang.Thread.State: RUNNABLE
    at java.io.UnixFileSystem.checkAccess(Native Method)
    at java.io.File.canRead(File.java:768)
    at org.apache.naming.resources.FileDirContext.file(Unknown Source)
    at org.apache.naming.resources.FileDirContext.doListBindings(Unknown Source)
    at org.apache.naming.resources.BaseDirContext.listBindings(Unknown Source)
    at org.apache.naming.resources.ProxyDirContext.listBindings(Unknown Source)
    at org.apache.catalina.core.ApplicationContext.listCollectionPaths(Unknown Source)
    at org.apache.catalina.core.ApplicationContext.getResourcePathsInternal(Unknown Source)
    at org.apache.catalina.core.ApplicationContext.getResourcePaths(Unknown Source)
    at org.apache.catalina.core.ApplicationContextFacade.getResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(Unknown Source)
    at org.apache.catalina.startup.TldConfig.execute(Unknown Source)
    at org.apache.catalina.startup.TldConfig.lifecycleEvent(Unknown Source)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Unknown Source)
    at org.apache.catalina.core.StandardContext.startInternal(Unknown Source)
    - locked <0x00000007b8198bd8> (a org.apache.catalina.core.StandardContext)
    at org.apache.catalina.util.LifecycleBase.start(Unknown Source)
    - locked <0x00000007b8198bd8> (a org.apache.catalina.core.StandardContext)
    at org.apache.catalina.core.ContainerBase.addChildInternal(Unknown Source)
    at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
    at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
    at org.apache.catalina.startup.HostConfig.deployDirectory(Unknown Source)

Environment

  • JBoss Enterprise Web Server (JWS) 3.x
    • Tomcat

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In