3 Replies Latest reply on Mar 29, 2004 12:15 AM by YASUDAzzz

    how to create 200 000 entity instances without out of mem?

    mbeyer73 Newbie

      JBoss 3.2.3:

      I am trying to create (import) 200 000 large CMP entity instances into JBoss.
      I get always out of mem when around 10% is done.
      JBoss then consumes more than 700 MB of memory.

      A new transaction is created for each instance -- so that can't be the problem.

      Any ideas?

      thanx!
      Marcus

      here is my config file:

       <container-configurations>
       <container-configuration>
       <container-name>Standard CMP 2.x EntityBean</container-name>
       <insert-after-ejb-post-create>true</insert-after-ejb-post-create>
       <container-cache-conf>
      
      <cache-policy>org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy</cache-policy>
       <cache-policy-conf>
       <min-capacity>50</min-capacity>
       <max-capacity>1000</max-capacity>
       <overager-period>150</overager-period>
       <max-bean-age>300</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-pool-conf>
       <MaximumSize>1000</MaximumSize>
       </container-pool-conf>
       <commit-option>A</commit-option>
       </container-configuration>
      </container-configurations>