WebappClassLoader deadlock if web application uses it's own classloader

Solution Unverified - Updated -

Issue

Tomcat6 deadlocks on WebappClassLoader :

Found one Java-level deadlock:
=============================
"http-8080-6":
  waiting to lock monitor 0x1731bafc (object 0x08189dd0, a org.apache.catalina.loader.WebappClassLoader),
  which is held by "http-8080-1"
"http-8080-1":
  waiting to lock monitor 0x1731b88c (object 0x13bdb118, a java.lang.String),
  which is held by "http-8080-5"
"http-8080-5":
  waiting to lock monitor 0x1731bafc (object 0x08189dd0, a org.apache.catalina.loader.WebappClassLoader),
  which is held by "http-8080-1"

Note : Logs above are extracted from upstream tomcat bugzilla

Environment

  • Red Hat Enterprise Linux (RHEL) v.6.3
  • Tomcat6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content