Offload to disk | Limitation on invalidation when server is stopped
FlushToDiskOnStop
Cache entries can also be written to disk when the server is stopped.There are two ways to achieve this:
- In the console, enable the option...
Flush to disk- Set the custom JVM property...
com.ibm.ws.cache.flushToDiskOnStop trueWhen this custom property is set to true, even if Flush to disk is not selected in the administrative console, upon a server stop, it will flush in-memory cache to disk and also retain the over flowed offloaded-to-disk cache.
To verify whether FlushToDiskOnStop is enabled or disabled, check the SystemOut.log on server startup for this message:
Cache I DYNA0061I: Flush to disk on stop is enabled for cache name "baseCache"....or...
Cache I DYNA0061I: Flush to disk on stop is disabled for cache name "baseCache".If you do not want to retain any cache entries (in-memory or on disk) when the server stops, ensure the following:
- The Flush to disk option is not selected in the Dynamic Cache Service Configuration page.
- The custom JVM property com.ibm.ws.cache.flushToDiskOnStop is either not present or is set to false in the JVM Custom Properties Configuration page.