1 Reply Latest reply on Sep 16, 2002 1:33 PM by John Woolsey

    Instance Cache / Pool Configuration in Jboss 3.0

    Uday Newbie

      Iam using JBoss 3.0.0 Embedded tomcat 4.0.3
      My current settings in standardjboss.xml are default :
      <min-capacity>50</min-capacity>
      <max-capacity>1000000</max-capacity>
      <overager-period>300</overager-period>
      <max-bean-age>600</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>

      My application uses CMP 2.0. We have about 60 entity beans and 20 session beans, approx 100 concurrent clients.
      What should be the ideal cache and pool settings? We are running it on a 512MB Win2K machine 1Gig.
      Commit options are all default.

      At times when we are doing large imports, abt 20,000 - 30,000 records, using CMP create, we see a spike in memory usage and an Out of Memory Exception.From the bug report 588241, we guess its an instance cache problem, so can you suggest an optimum cache setting for the above mentioned scenario.

      If the load increases too high, shouldnt the caaching strategy handle it without giving Out of Memory Exception? and we shouldnt be manipulating memory on a case to case basis?

      We reduced the cache- capacity to 3000 from 1million, and the Out of Memory problem didnt occur, however what if the size of beans exceed the memory allocated even with 3000 max capacity?

        • 1. Re: Instance Cache / Pool Configuration in Jboss 3.0
          John Woolsey Newbie

          Your out of memory exception was from the JVM which has the maximum memory setting pre-configured. I would suggest setting the min-capacity to the max capacity and then find out how much memory is free on your jvm. I would also preset the JVM to the min to max memory. I would also set your max jvm memory setting higher. You can download a copy of JProbe and get better information on what is going on with your memory.
          - bfn - JAW