2 Replies Latest reply on Mar 3, 2016 2:07 PM by frankv

    Connector configuration - connections and its associated threads


      Hi everybody,


      In my standalone-full.xml file, the connector tag is configured by default as this:


          <subsystem xmlns="urn:jboss:domain:web:2.1" default-virtual-server="default-host" native="false">
              <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
              <virtual-server name="default-host" enable-welcome-root="true">
                  <alias name="localhost"/>
                  <alias name="example.com"/>


      it means that the max-connections is 'undefined', I could see it by running, with jboss-cli.sh, the command /subsystem=web/connector=http:read-resource(recursive=true)



      when I run my stress program (up to 300 connections) 300 tcp connections are opened and visualvm shows 300 threads that it's normal.
      But, when the program has finished and been waiting for a while, all the connections has disappeared but not the threads: the 300 are still present. There are all marked as WAITING:


      ..... example .....

      "http-europa/" - Thread t@5943

         java.lang.Thread.State: WAITING

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

          - waiting on <2a41da44> (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:881)

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

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


         Locked ownable synchronizers:

          - None



      I don't know if it's an issue or a bad configuration.

      Is it a normal behaviour ?
      Is there any property (a kind of thread timeout )  to add in the connector tag or any other configuration ?
      if not, what can I do to avoid this raising ?