5 Replies Latest reply on Oct 8, 2014 6:03 AM by jfclere

    How do I migrate the connector thread settings in JBoss 5.1.0 to web subsystem in JBoss  7.1.1 ?

    ejroberts

      I am trying to migrate the connector thread settings we have in our JBoss Web config in JBoss AS 5.1.0 (i.e. deploy/jbossweb.sar/server.xml) to the format

      that achieves the same end in JBoss AS 7.1.1.

       

      Here is a snippet from the 5.1.0 server.xml file which I would like to migrate over

       

      <!-- A HTTP/1.1 Connector on configurable port -->

      <Connector protocol="HTTP/1.1" scheme="http" port="8080" address="${jboss.bind.address}"

               maxThreads="50" minSpareThreads="5" strategy="ms" maxHttpHeaderSize="8192"

               emptySessionPath="true"

               enableLookups="false" redirectPort="8443" acceptCount="100"

               connectionTimeout="60000" disableUploadTimeout="true"/>

       

      Unless I am mistaken, in 7.1.1, the web subsystem only provides a subset of the attributes above. The ones I am having difficulty finding

      homes for are highlighted in red above.

       

      I have seen that there is an executor attribute which I believe links to a Thread Pool definition within the threads subsystem configuration, which

      might solve the majority of what goes where, but I need some help understanding if they are correct.

       

      Here is the current snippet from my 7.1.1 standalone.xml. I opt for a bounded queue thread pool as we clearly had task limits via the acceptCount before.

      Does strategy from the old format simply not have any part in the new configuration ? How about emptySessionPath ?

       

      <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">

           <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" redirect-port="8443" max-connections="100"/>

      </subsystem>

       

      <subsystem xmlns="urn:jboss:domain:threads:1.1">

           <bounded-queue-thread-pool name="http-executor">    

                <core-threads count="5"/> <!-- is this the same as minSpareThreads? -->

                <queue-length count="100"/> <!-- is this the same as acceptCount? -->

                <max-threads count="50"/> <!-- is this the same as maxThreads and if so does it override max-connections in the connector definition? -->

                <keepalive-time time="60000" unit="milliseconds"/> <!-- is this the same as connectionTimeout? -->

           </bounded-queue-thread-pool>

      </subsystem>

       

      Thanks for any help

       

      (p.s. an unrelated question, should redirect-port in the connector definition really be something like redirect-socket-binding in order to reuse the https socket binding definition ?)