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/...
http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/...
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&...]