[jboss-user] [IronJacamar] - Re: Thread BLOCKED on registerConnection/unregisterConnection?
Vadim Kopichenko
do-not-reply at jboss.com
Tue Mar 20 06:22:55 EDT 2012
Vadim Kopichenko [https://community.jboss.org/people/vkopichenko] created the discussion
"Re: Thread BLOCKED on registerConnection/unregisterConnection?"
To view the discussion, visit: https://community.jboss.org/message/724971#724971
--------------------------------------------------------------
During performance tests on JBoss 4.2.3.GA we've also faced much BLOCKED threads on org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:288)
and org.jboss.resource.connectionmanager.CachedConnectionManager.unregisterConnection(CachedConnectionManager.java:318)
The connection pool was not exhausted.
Digging in sources led to this:
http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.jboss.jbossas/jboss-as-connector/5.0.0.Beta4/org/jboss/resource/connectionmanager/CachedConnectionManager.java#286 http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.jboss.jbossas/jboss-as-connector/5.0.0.Beta4/org/jboss/resource/connectionmanager/CachedConnectionManager.java#286
286 if (debug)
287 {
288 synchronized (connectionStackTraces)
289 {
290 connectionStackTraces.put(connection, new Throwable("STACKTRACE"));
291 }
292 }
So the problem is not about slow sql but about debug synchronization.
This can be disabled in deploy/jbossjca-service.xml with <attribute name="Debug">false</attribute>.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/724971#724971]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120320/42186aa3/attachment.html
More information about the jboss-user
mailing list