Tutorials > Dynamic caching > Operate dynacache in a production environment
Tune parameter: flush to disk
This section is related to flush to disk..
When the flushToDiskOnStop property is set to true, in-memory cached objects are saved to disk when the server is stopped.
Procedure
Set the value for flushToDiskOnStop to true.
- Start the WebSphere Application Server administration server.
- Launch the WebSphere administrative console.
- Click Servers > Application servers > server1 > Java and process management > Process definition > Java virtual machine > Custom properties > New.
- Enter com.ibm.ws.cache.flushToDiskOnStop for Name, and true for Value.
- Click OK, and save the changes.