1 Reply Latest reply on Aug 19, 2009 7:31 AM by f_marchioni

    JBoss crashed under peak load

    panpur

      Hello, I'm using JBoss 4.2.1 GA for my app. The app must regularly process & save a lot of data every 1 minute.

      After running the app scheduler on a few minutes, I got this error:

      javax.ejb.EJBTransactionRolledbackException: EntityManager must be access within a transaction
      


      Some forum suggested to extend the transaction timeout on /conf/jboss-service.xml.

      The advice worked great, the app runs fine for 1 day, but after that Jboss crashed leaving hs_err_pid.log file.

      I've tried extending the timeout little by little to get the sweet spot with no success, I got either the first error or Jboss crash.

      Is there any suggestion to solve this problem ?
      Thank's in advance.


        • 1. Re: JBoss crashed under peak load
          f_marchioni

          Hello,
          it would be necessary to know more details about your applications, anyway if jBoss is overwhelmed by the amount of request you might try to increase the thread pool in conf/jboss-service.xml
          for example:

          <mbean code="org.jboss.util.threadpool.BasicThreadPool"
           name="jboss.system:service=ThreadPool">
           <attribute name="Name">JBoss System Threads</attribute>
           <attribute name="ThreadGroupName">System Threads</attribute>
           <attribute name="KeepAliveTime">60000</attribute>
           <attribute name="MaximumPoolSize">500</attribute>
           <attribute name="MaximumQueueSize">2000</attribute>
           <attribute name="BlockingMode">run</attribute>
           </mbean>


          hope it helps
          Francesco