Originally posted by Kiran Kumar:
So, if the number of simultaneous users are like 20, then should the max-beans-in-cache value set to 20000?
Not exactly. By simultaneous, I assume you mean more like "logged into the webapp" versus "actively operating on 200 beans in a transaction." The bean cache must be large enough to hold all beans currently participating in all transactions.
For example, if you have a transaction that will involve 200 beans, and you expect 10 users to invoke that transaction
at the same time, then you'll need to set your cache to 2,000. If you expect to have at most 20 users logged into the application at once but each one doing different operations, then you can probably expect no more than 3 to perform that same transaction at once. Clearly, you'll have to work the numbers using your own data, but don't worry that you have to have all beans in the cache at the same time.