[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBoss 4.2.1: Classloader hang at findBoostrapClass

tingzhou do-not-reply at jboss.com
Fri May 23 18:43:17 EDT 2008

Recently we run into a serious problem with our JBoss 4.2.1 server. About an hour (sometimes shorter) after the server is started, many threads (hundreds of them) start frequent lockup, all waiting to acquire a "synchronized" lock on AppClassLoader. And the thread that holds the lock has the following stack trace:

java.lang.ClassLoader.findBootstrapClass(Native Method)
-- snip --

I did a little timing exercise. This simple findBootstrapClass() call, which usually takes a few milliseconds at most, would take 20 seconds to multi-minutes to complete. During this time, since AppClassLoader.loadClass() is synchronized, the entire application simply stops and the requests quickly stack up and crash the application as a result.

I'm not saying this is a JBoss or JVM bug (though could be), since this only happens after we recently deploys our new application code. Some change in our code triggered this behavior but we don't know what it is, and this behavior only shows up in one of our JBoss servers.

Any experience on this kind of lockup? This problem has jeopardized our release schedule and any help will be greatly appreciated. 

Ting Zhou 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153108#4153108

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4153108

More information about the jboss-user mailing list