Modify the caching values if your data does not update constantly
In the applicationContext-adhoc.xml Spring configuration file, there are two parameters for when to clear the cache.
The defaultTimeoutMinutes and defaultUnusedTimeoutMinutes properties, both in the dataSetCache bean, can be modified:
The number of minutes to wait before removing a dataset from the cache. Ensures that stale data is periodically replaced with fresh data from the data source. The default is 60 minutes.
- defaultTimeoutMinutes: The number of minutes to wait before removing a dataset from the cache. Ensures that stale data is periodically replaced with fresh data from the data source. The default is 60 minutes. So if the value is set to something below 60, then it might be worthwhile testing it by setting it to the maximum value.
- defaultUnusedTimeoutMinutes: The number of minutes to wait after a dataset is used before removing it from the cache. The default is 20 minutes. You might try setting this value to a higher value (something higher than the default 20).
For more on these parameters, and Managing Ad Hoc Caching in general, refer to the JasperReports Server Admin Guide.
Other Performance Tips:
- Measure and Test
- Ad Hoc
- Tomcat
- Database
- JasperReports Configuration Items
Log in or register to post comments