2 Replies Latest reply on Jul 2, 2009 2:58 AM by liangfa lei

    Problem for JNDI database connection pooling

    liangfa lei Newbie


      I hava an app which runs on JBoss 4.* with the JNDI connection datasource pooling named testDs,and sometimes it does not work.At that time I view the "jboss.system"-"type=ServerInfo" in jmx-console,invoke the "java.lang.String listThreadDump()" operation button and find there are several BLOCKING state threads which indicate they are blocking in getting datasource connection.

      In the meantime,i try to view "jboss.jca"-"name=testDs,service=ManagedConnectionPool" in jmx-console,but find there is no response when i click that link,which means i could't access the attribute page for the testDs connection pooling.When i restart the JBoss,it works.Anybody knows how this happened? What lead to the connnection pooling attribute page can't be accessible?

      Your reply will by most appreciated.

        • 2. Re: Problem for JNDI database connection pooling
          liangfa lei Newbie


          "vickyk" wrote:
          Spend some time to view the "Connection leak" section here

          Thanks.I have read the docs.

          What i mentioned above happends when i executing an operation.Before executing i monitor the ds "JBossManagedConnectionPool" MBean attribute description page,everything is ok,the value of "InUseConnectionCount" attribute is 0,means there are no connections that not closed,and the value of "AvailableConnectionCount" is 30,means there are idle connections for use.

          <?xml version="1.0" encoding="UTF-8"?>
           <new-connection-sql>SELECT COUNT(*) FROM dual</new-connection-sql>
           <check-valid-connection-sql>SELECT COUNT(*) FROM dual</check-valid-connection-sql>

          the threadDump after executing an operation:
          Thread: ajp- : priority:5, demon:true, threadId:500, threadState:BLOCKED, lockName:java.util.ArrayList@7052f5

          So anybody have ideas with this?

          Your reply will by most appreciated.