0 Replies Latest reply on Jan 4, 2008 10:04 AM by Andrew Redhead

    How to size EJB3 continer for EJB3 stateless session beans (

    Andrew Redhead Newbie


      I'd like to know if anyone has any guidelines or techniques for sizing the instance pool for EJB3 stateless session beans in JBoss 4.2.1?

      We are going live with an EJB3 based application and I'd like to know if I've got the EJB3 container configured sensibly...

      In ejb3-interceptors-aop.xml I've got the references to:

       <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
       @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=300, timeout=10000)

      Which means I've multiplied the default by 100!

      How can I tell if this is too big or too small?

      Are there any other parameters I should be changing to run the EJB3 container under heavy load on poweful servers?

      We will be running on jdk1.5_13, solaris 10, sun T2k servers (if that makes any difference).