A servlet cache instance is a location, in addition to the default shared dynamic cache, where dynamic cache can store, distribute, and share data. By using servlet cache instances, your applications have greater flexibility and better tuning of the cache resources. The Java Naming and Directory Interface (JNDI) name specified for the cache instance is mapped to the name attribute in the <cache-instance> tag in the cachespec.xml configuration file.
To view this administrative console page, click Resources > Cache instances > Servlet cache instances > cache_instance_name.
The required display name for the resource.
The Java Naming and Directory Interface (JNDI) name for the resource. Specify this name in the name attribute field in the <cache-instance> tag in the cachespec.xml configuration file. This tag is used to find the particular cache instance in which to store cache entries.
Specifies a description for the resource. This field is optional.
Specifies a category string to classify or group the resource. This field is optional.
Specifies a positive integer for the maximum number of entries the cache holds. The cache size is usually in the thousands.
Default | 2000 |
Range | 100 - no set maximum value |
The default priority for servlets that can be cached. This value determines how long an entry stays in a full cache.
The recommended value is one.
Specifies if disk offloading is enabled.
If you have disk offload disabled, when a new entry is created while the cache is full, the priorities are configured for each entry and the least recently used algorithm are used to remove the entry from the cache in memory. If you enable disk offload, the entry that would be removed from the cache is copied to the local file system. The location of the file is specified by the disk offload location.
Default | false |
The directory used for disk offload.
If disk offload location is not specified, the default location, ${WAS_TEMP_DIR}/node/server name/_dynacache/cache JNDI name will be used. If disk offload location is specified, the node, server name, and cache instance name are appended. For example, ${USER_INSTALL_ROOT}/diskoffload generates the location as ${USER_INSTALL_ROOT}/diskoffload/node/server name/cache JNDI name. This value is ignored if disk offload is not enabled. The default value of the ${WAS_TEMP_DIR} property is ${USER_INSTALL_ROOT}/temp. If you change the value of the ${WAS_TEMP_DIR} property after starting WebSphere Application Server, but do not move the disk cache contents to the new location:
Specifies if in-memory cached objects are saved to disk when the server is stopped. This value is ignored if Enable Disk Offload is not selected.
Default | false |
Use cache replication to enable sharing of cache IDs, cache entries, and cache invalidations with other servers in the same replication domain.
This option might be unavailable for cache instances created with a previous version of WebSphere Application Server.
Specifies a replication domain from which your data is replicated.
Specifies a replication domain from which your data is replicated. Choose from any replication domains that have been defined. If there are no replication domains listed, create one during cluster creation or manually in the administrative console by clicking Environment > Internal replication domains > New. The replication domain you choose to use with the dynamic cache service must be using a Full group replica. Do not share replication domains between replication consumers. Dynamic cache should use a different replication domain from session manager or stateful session beans.
The global sharing policy for this cache instance. The following settings are available:
The default setting for a an environment without clustering is Not Shared. When enabling replication, the default value is Not Shared.
Related reference
Object cache instance collection
Object cache instance settings
Servlet cache instance collection