Configuring the Jackrabbit Janitor Thread
On a distributed ActiveMatrix BPM system, when adding a new node to the system, the operation to add the new node can take a long time to complete if the BPM database contains a large number of Jackrabbit journal entries (in the APA_JL_Journal table).
(The Jackrabbit content repository is used by Application Development. Jackrabbit maintains an internal journal of all changes made to the repository, and replays those journal entries when a new node gets added. If the journal contains a large number of entries, the time taken to replay them can be significant.)
Configuring the Jackrabbit janitor thread can prevent this problem. The thread periodically cleans up the journal entries so that the number of records in the APA_JL_Journal database table does not continually grow.
The janitor thread can be configured using the following parameters in the CONFIG_HOME\bpm\bpm_app_name\appdev\repository.xml file:
<-- Enable clean-up thread --> <param name="janitorEnabled" value="true"/> <-- Sleep time in seconds (default = 24 hours) --> <-- <param name="janitorSleep" value="86400"> --> <-- Initiate the first run at 1:00 am (default = 3:00 am) --> <param name="janitorFirstRunHourOfDay" value="1"/>