0 Replies Latest reply on Sep 12, 2013 11:38 PM by Santy Avinash

    Live Threads (AJP Threads) keeps on increasing in Jboss

    Santy Avinash Newbie

      Hi,

       

      In our environment we use Apache 2.2 (3 Servers load balanced with physical Loadbalancer) with JBOSS  7.1.1 (Three server standalone cluster) for hosting our Application.

       

      Jboss is load Balance via Mod_cluster, the application works fine , below is my mod_cluster configuration

       

      <subsystem xmlns="urn:jboss:domain:modcluster:1.0">

                  <mod-cluster-config advertise-socket="modcluster" proxy-list="IP_ADD1:80,IP_ADD2:80,IP_ADD3:80">

                      <dynamic-load-provider>

                          <load-metric type="busyness"/>

                      </dynamic-load-provider>

                  </mod-cluster-config>

      </subsystem>

       

      but what we observe is the live threads keeps on increasing every day. I Monitor Jboss using couple of tools one of the is jvisualVM, when I observe the threads and hundreds of  these threads are AJP threads on port 8009.  Below is a example the threads are in RUNNABLE, WAITING or CLOSED_WAITING state

       

      ajp--IP_ADDRESS-8009-828" - Thread t@1698

         java.lang.Thread.State: WAITING

        at java.lang.Object.wait(Native Method)

        - waiting on <5fccfab8> (a org.apache.tomcat.util.net.JIoEndpoint$Worker)

        at java.lang.Object.wait(Object.java:503)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:885)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:911)

        at java.lang.Thread.run(Thread.java:722)

       

      The threads keep on increasing (200 threads every day).

       

      I wanted to know whether this is normal behaviour ? if not then how to fix this ?

       

      I am not a java developer and help would be most appreciated


      Regards