1 Reply Latest reply on Jan 17, 2012 12:17 PM by jfclere

    BusyConnectorsLoadMetric not working with Tomcat 6.0.13

    nichele

      Hi All,

      i'm using mod-cluster 1.1.3 + tomcat 6.0.13.

      This is the section i added in my server.xml:

       

        <Listener className="org.jboss.modcluster.catalina.ModClusterListener"

                  advertise="false"

                  proxyList="aaaaa:6666,bbbbb:6666,ccccc:6666"

                  maxAttempts="3"

                  nodeTimeout="600"

                  workerTimeout="900"

                  ping="60"

                  stickySessionForce="true"

                   />

       

      As i have understood, mod-cluster should use BusyConnectorsLoadMetric with tomcat by default but what i'm seeing this is not true (i have 3 tomcat instances and on the slower one i have a large number of requests). Same result specifying in the listener definition:

       

      loadMetricClass="org.jboss.modcluster.load.metric.impl.BusyConnectorsLoadMetric"

       

       

      I added some debug info in ModclusterService.java (System.out.println("LBF: " + lbf); at line 493, method status) and in MBeanAttributeRatioLoadMetric  (System.out.println("Load: " + result + " (" + dividend + "/" + divisor + ")"); )

       

      And in the catalina.out file i have:

       

      Load: NaN (0.0/0.0)

      LBF: 100

       

      and this info never change.

       

      Am I missing anything ? Any suggestion ?

      ste