JBoss Community

Can PooledInvoker used for EJB3 in JBOSS 5.x?

created by Hardik Shah in Performance Tuning - View the full discussion

I have configured my jboss to use PooledInvoker as suggested in below link.

 

https://community.jboss.org/wiki/PooledInvokerConfig

 

But I don't this that this configuration is being used.

Below is my configuration in legacy-invokers-service.xml.

 

   <mbean code="org.jboss.invocation.pooled.server.PooledInvoker"

      name="jboss:service=invoker,type=pooled">

      <attribute name="NumAcceptThreads">1</attribute>

      <attribute name="MaxPoolSize">20</attribute>

      <attribute name="ClientMaxPoolSize">21</attribute>

      <attribute name="SocketTimeout">20000</attribute>

      <attribute name="ServerBindAddress">

         <value-factory bean="ServiceBindingManager" method="getStringBinding" parameter="jboss:service=invoker,type=pooled"/>

      </attribute>

      <attribute name="ServerBindPort">

         <value-factory bean="ServiceBindingManager" method="getIntBinding" parameter="jboss:service=invoker,type=pooled"/>

      </attribute>

      <attribute name="ClientConnectAddress">

         <value-factory bean="ServiceBindingManager" method="getStringBinding" parameter="jboss:service=invoker,type=pooled"/>

      </attribute>

      <attribute name="ClientConnectPort">0</attribute>

      <attribute name="ClientRetryCount">1</attribute>

      <attribute name="EnableTcpNoDelay">false</attribute>

 

 

      <!-- Customized socket factory attributes

      <attribute name="ClientSocketFactoryName">custom.client.factory</attribute>

      <attribute name="ServerSocketFactoryName">custom.server.factory</attribute>

      <attribute name="SslDomain">java:/jaas/pooledInvoker</attribute>

      -->

      <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>

   </mbean>

 

Even with above setting, I see more than 20 threads getting created.

And I have understood through some reading that, when pooledinvoker is used. The thread name is Prefixed with PooledInvoker, but I dont see the same in trace log.

 

TRACE [org.jboss.remoting.transport.socket.SocketServerInvoker] (AcceptorThread[ServerSocket[addr=/0.0.0.0,port=0,localport=3873]]) SocketServerInvoker[rac2:3873] created WorkerThread#0

Reply to this message by going to Community

Start a new discussion in Performance Tuning at Community