1 Reply Latest reply on Dec 1, 2014 11:56 AM by Paul Ferraro

    How to configure JGroups Thread Pool ?

    mark boletti Newbie

      Hi all!

      I have a JBoss AS 7 configuration which uses a custom Thread pool size for JGroups. I can see that WildFly 8.1 does not have anymore the threads subsystem- how can I link the JGroups pool to a thread pool ? So I've tried adding an executor in the IO subsystem:


      <subsystem xmlns="urn:jboss:domain:io:1.1">
       <worker name="mypool" io-threads="10" task-max-threads="30" stack-size="20"/>
       . . .


      And reference it in the JGroups transport:

        <transport type="UDP" socket-binding="jgroups-udp" default-executor="mypool"/> 

      However then JGroups does not start any more. Any help?


        • 1. Re: How to configure JGroups Thread Pool ?
          Paul Ferraro Master

          The io subsystem registers org.xnio.XnioWorker services, whereas JGroups default-executor expects the name of a thread pool.  The threads subsystem still exists, but the extension is not loaded/defined by/in the default configuration.  WildFly 9 will change the way thread pools are defined in JGroups.  Until then, I recommend configuring the JGroups transport thread pools via properties.


          <transport type="UDP" socket-binding="jgroups-udp">
              <property name="thread_pool.min_threads">20</property>
              <property name="thread_pool.max_threads">300</property>
              <property name="thread_pool.keep_alive_time">60000</property><!-- in ms -->
              <property name="thread_pool.queue_max_size">100</property>