EJBCache
This type is a class for model objects.
Configuration for the cache of enterprise bean instances. Each EJB container maintains a cache for ready access. Specify settings governing the cache size and a policy for removing unused items from the cache.
Package: ejbcontainer
Classifier ID: -1
Instance class name: * Unspecified *
Instance class: * Unspecified *
Reference attributes having this type:
EJBContainer.cacheSettings
Attributes Summary cleanupInterval : ELong Specifies the interval at which the container attempts to remove unused items from the cache in order to reduce the total number of items to the value of the cache size. The cache manager tries to maintain some unallocated entries that can be allocated quickly as needed. A background thread attempts to free some entries while maintaining some unallocated entries. If the thread runs while the application server is idle, then when the application server needs to allocate new cache entries, it does not pay the performance cost of removing entries from the cache. In general, increase this parameter as the cache size increases. cacheSize : ELong Specifies the number of buckets in the active instance list within the EJB container. A bucket can contain more than one active enterprise bean instance, but performance is maximized if each bucket in the table has a minimum number of instances assigned to it. When the number of active instances within the container exceeds the number of buckets (that is, the cache size), the container periodically attempts to reduce the number of active instances in the table by passivating some of the active instances. For the best balance of performance and memory usage, set this value to the maximum number of active instances expected during a typical workload. The container selects the next largest prime number equal to or greater than the specified value.
Attribute Details
cleanupInterval - Specifies the interval at which the container attempts to remove unused items from the cache in order to reduce the total number of items to the value of the cache size. The cache manager tries to maintain some unallocated entries that can be allocated quickly as needed. A background thread attempts to free some entries while maintaining some unallocated entries. If the thread runs while the application server is idle, then when the application server needs to allocate new cache entries, it does not pay the performance cost of removing entries from the cache. In general, increase this parameter as the cache size increases.
Data Type: ELong
Default value: 3000
Required: false
Changeable: true
Unsettable: true
Many: false
Ordered: true
Lower bound: 0
Upper bound: 1
Unique: true
Derived: false
Transient: false
Volatile: false
cacheSize - Specifies the number of buckets in the active instance list within the EJB container. A bucket can contain more than one active enterprise bean instance, but performance is maximized if each bucket in the table has a minimum number of instances assigned to it. When the number of active instances within the container exceeds the number of buckets (that is, the cache size), the container periodically attempts to reduce the number of active instances in the table by passivating some of the active instances. For the best balance of performance and memory usage, set this value to the maximum number of active instances expected during a typical workload. The container selects the next largest prime number equal to or greater than the specified value.
Data Type: ELong
Default value: 2053
Required: false
Changeable: true
Unsettable: true
Many: false
Ordered: true
Lower bound: 0
Upper bound: 1
Unique: true
Derived: false
Transient: false
Volatile: false
(C) COPYRIGHT International Business Machines Corp. 1996-2006