1 Reply Latest reply: Feb 17, 2012 9:26 AM by Hardik Shah RSS

    Set maximum number of worker threads

    Hardik Shah Newbie

      I am using jboss-5.1.0.GA.

      I have set below parameters in ../deploy/ejb3-interceptors-aop.xml for my Standard Statless Bean.

       

         <domain name="Stateless Bean" extends="Intercepted Bean" inheritBindings="true">

            <bind pointcut="execution(public * *->*(..))">

               <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>

               <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>

            </bind>

            <bind pointcut="execution(public * @org.jboss.ejb3.annotation.SecurityDomain->*(..))">

               <interceptor-ref name="Basic Authorization"/>

            </bind>

            <bind pointcut="execution(public * *->*(..))">

               <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>

            </bind>

            <bind pointcut="execution(public * @org.jboss.ejb3.annotation.Clustered->*(..))">

               <interceptor-ref name="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory"/>

            </bind>

            <bind pointcut="execution(public * *->*(..))">

               <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>

               <interceptor-ref name="org.jboss.ejb3.tx.CMTTxInterceptorFactory"/>

               <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>

               <interceptor-ref name="org.jboss.ejb3.tx.BMTTxInterceptorFactory"/>

               <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>

               <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>

               <!-- interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/ -->

               <stack-ref name="EJBInterceptors"/>

            </bind>

            <annotation expr="class(*) AND !class(@org.jboss.ejb3.annotation.Pool)">

               @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=10, timeout=10000)

            </annotation>

         </domain>

       

      I have defined maxSize=10, now  i put load of 50 TPS from client tool to my jboss server.

      when i monitor my jboss through jconsole, it shows 50 worker threads.

       

      Please guide me how to set maximum number of workder threads.

        • 1. Re: Set maximum number of worker threads
          Hardik Shah Newbie

          Just as statistics purpose.

           

          When I send 10 concurrent request, I see 10 worker threads being created in jconsole.

          When I send 25 concurrent request, I see 25 worker threads being created in jconsole.

          But when I send anything above 50 concurrent request, I see maximum 50 workder threads in jconsole.

           

          So it gets restricetd at 50 but i am not sure where exactly is this define.