Changing Tomcat settings for efficient serialization
Addressing the timeout setting
The cache objects are available from memory to disk across restart only if you have a clean Tomcat shutdown. In the Apache Tomcat properties, set the shutdown time and thread stack size to an appropriately high value. In the following screenshot, Timeout is set to 0, so the system will wait for a clean shutdown and not stop the service. (In the Windows operating system, the default Timeout is one minute. The default setting overrides the value you set here.)
If you are using the version of Tomcat that was bundled with your installation on Windows, the service might fail to restart if the timeout setting is too low and you have cached many forms.
To increase the shutdown timeout in the Tomcat configuration tool
- Select Start > All Programs > Apache Tomcat > Configure Tomcat.
- Click the Shutdown tab.
- In the Timeout field, enter a value that is appropriate for the number of forms you have cached. The more forms you have cached, the larger this number should be. A value of 60 seconds is recommended. Use a higher value if you will be caching a large number of forms.
- Click the General tab.
- Click Start.
- Click OK.
You do not need to adjust the shutdown time when running Tomcat from the command line.