开发者

Help with Java thread dump of partially hanged j2ee server

Our J2ee server (which will remain nameless for embarrassment reasons) slows down drastically from time to time. I have managed to create a thread dump. And trying to analyze it. One of the things that I don't understand is some waiting on locks without finding the locking thread. Here is开发者_如何学编程 part of the stack trace of such thread:

waiting for monitor entry []
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:781)
- waiting to lock <0xsomenumber> (a org.apache.commons.pool.impl.GenericObjectPool)
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)

The somenumber number is only wait upon. I don't see anything locking it. How can that be?

Thanks.

Update with some more detailed: the jdk version is 1.4.2.05


Use JConsole in the JDK to attach to your application server and use the "Detect Deadlock" button on the Threads pane.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜