2 Replies Latest reply on Feb 9, 2007 10:23 AM by peterj

    Number of DB Connections

    guhan

      Could someone tell me how to find the number of DB connections that are being made while an application is running from the JMX/Web console

      Also the status of number of threads spawned.

      Thanks in advance

        • 1. Re: Number of DB Connections
          peterj

          Each datasource maintains its own connection count. For a datasource named XXX, look at the mbean:

          jboss.jca:service=ManagedConnectionPool,name=XXX

          There is a worker thread pool, which can be monitored using this mbean:

          jboss:service=invoker,type-pooled

          Also, each connection has its own thread pool, which can be monitored using mbean (where XXX is the binding address and 9999 is the port number):

          jboss.web"type=ThreadPool,name=http-XXX-9999

          And there is also:

          jboss.system:service=ThreadPool

          • 2. Re: Number of DB Connections
            peterj

            Oh, I forgot the following:

            jboss.system:type=ServerInfo