0 Replies Latest reply on Feb 27, 2008 12:55 AM by Vicky Kak

    JCA Statistics through JMX/JSR77

    Vicky Kak Master

      I was able to find that the
      org.jboss.management.j2ee.JCAConnectionFactory.java's getPoolStats(..) does not capture the UseTime, WaitTime And WaitingThreadCount .

      UseTime --> Time spend using the connection . { This is not available from the InternalManagedConnectionPool , not sure if this would be helpful}

      WaitTime --> Time spent waiting for a connection to be available . { This is available through the InternalManagedConnectionPool.getTotalBlockTime() }

      WaitingThreadCount --> The number of threads waiting for a connection . { This is yet not provided }

      The WaitingThreadCount cannot be obtained from the Semaphore implemetation which we have , I was expecting it to have the methods which are a part of the jdk1.5 semaphore .
      getQueueLength() in the java.util.concurrent.Semaphore can give us the details about the WaitingThreadCount but it is not available in the EDU.oswego.cs.dl.util.concurrent.FIFOSemaphore which is being used in the InternalManagedConnectionPool .

      So I was thinking of using the Semaphore implementation from jdk1.5 in Jboss5 , which will eventually help us in getting WaitingThreadCount .