5 Replies Latest reply on Feb 5, 2008 11:44 AM by anny_lut

    increase passivate timeout of Entity Beans (RO)

    pedrosalazar

      Greetings,

      I have information in my Entity Beans (Read-Only) that I would like to extend the time without passivate. I mean, the information is very critical for high performance, and the load time (in ejbLoad()) takes about 500-1000ms, and I want to improve this, by extending the time for timeout.

      Now, after a few minutes of inactivity, the EJBs are passivated, and I'll loose time in the load time. Isn't possible to extend this time? My operation take about 50ms and with the 500-1000ms in the load, it's terrible.

      thanks,
      Pedro Salazar.

        • 1. Re: increase passivate timeout of Entity Beans (RO)
          aloubyansky

          max-bean-age in cache-policy-conf in jboss.xml.

          • 2. Re: increase passivate timeout of Entity Beans (RO)
            pedrosalazar

             

            "loubyansky" wrote:
            max-bean-age in cache-policy-conf in jboss.xml.


            What is the limit for max-bean-age? Is possible to define a unlimited time bean age?

            I have a cluster entity bean where I defined a max-bean-age of 86400 but after a few time (10 minutes?) it goes passivated.

             <entity>
             <ejb-name>Primitive</ejb-name>
             <local-jndi-name>ejb/PrimitiveLocal</local-jndi-name>
             <read-only>true</read-only>
             <configuration-name>CMP extended life time</configuration-name>
             ...
            
             <container-configuration
             extends="Standard CMP 2.x EntityBean with cache invalidation">
             <container-name>CMP extended life time</container-name>
             <container-cache-conf>
             <cache-policy>
             org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy
             </cache-policy>
             <cache-policy-conf>
             <min-capacity>50</min-capacity>
             <max-capacity>1000000</max-capacity>
             <overager-period>300</overager-period>
             <max-bean-age>86400</max-bean-age>
             <resizer-period>400</resizer-period>
             <max-cache-miss-period>60</max-cache-miss-period>
             <min-cache-miss-period>1</min-cache-miss-period>
             <cache-load-factor>0.75</cache-load-factor>
             </cache-policy-conf>
             </container-cache-conf>
             </container-configuration>
            


            What is the problem?

            I'm using jboss 3.2.5.

            regards,
            Pedro Salazar.

            • 3. Re: increase passivate timeout of Entity Beans (RO)
              aloubyansky

              There is no limitation. 10 min is the default value. There is also NoPassivationCachePolicy if you don't want instances to be passivated at all.

              • 4. Re: increase passivate timeout of Entity Beans (RO)
                anny_lut

                I also try to increase/decrase the value of <max-bean-age>
                But it seems, this parameter is ignored.. Because there are no difference in passivation timeout, when

                <max-bean-age>10</max-bean-age>


                and

                <max-bean-age>600</max-bean-age>


                in both examples passivation timeout is 10 min.

                I want to decrease this value for testing passivation behaviour... but I cannt.
                How I can do this?

                • 5. Re: increase passivate timeout of Entity Beans (RO)
                  anny_lut

                  I use /all configuration. JBOSS 3.2.1