Tomcat is slow to deploy application

Solution Verified - Updated -

Issue

Tomcat is very slow to deploy a web application. Thread dumps show the startstop thread hanging in Jar verification:

"localhost-startStop-1" daemon prio=10 tid=0x00007fc458003000 nid=0x6ddc runnable [0x00007fc48e069000]
     java.lang.Thread.State: RUNNABLE
        at sun.security.util.ManifestDigester.<init>(ManifestDigester.java:179)
        at java.util.jar.JarVerifier.processEntry(JarVerifier.java:290)
        - locked <0x00000005def12df8> (a [B)
        at java.util.jar.JarVerifier.update(JarVerifier.java:228)
        at java.util.jar.JarFile.initializeVerifier(JarFile.java:348)
        at java.util.jar.JarFile.getInputStream(JarFile.java:415)
        - locked <0x00000005de7136b0> (a sun.net.www.protocol.jar.URLJarFile)
        at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:162)
        at java.net.URLClassLoader.getResourceAsStream(URLClassLoader.java:233)
        at org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(Unknown Source)
        at org.apache.catalina.startup.ContextConfig.populateJavaClassCache(Unknown Source)

Environment

  • Red Hat JBoss Web Server - Tomcat
  • Red Hat Enterprise Linux - 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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.