Modifying the cleanup frequency
If you encounter Java out-of-memory errors, or if your data/requests directory gets very large, during regular cleanup intervals, then consider automating and fine-tuning the database and data/requests directory cleanup process .
Rather than managing the job queue using the
delete function from the URL API, you can automate cleanup to keep from encountering out-of-memory errors and very large amounts of data requests stored. To manage this process,
Spotfire Statistics Services contains two properties to control the number of days to store data and frequency of cleanup of the database and data/requests directory.
- db.cleanup.run.interval.minutes, which controls how frequently the cleanup is run.
- db.cleanup.time.to.live.days, which specifies the number of days can elapse before an entry in the jobs database the data/requests directory is considered old enough to delete when the scheduled cleanup runs..
Perform this task on the computer where Spotfire Statistics Services is installed.
Procedure
Result
What to do next
If you continue to see out-of-memory errors, then try Increasing the database memory size on the Tomcat server.
Related tasks
Copyright © 2021. TIBCO Software Inc. All Rights Reserved.