Configuring Cleanup of the PVM_WORK_ITEM or PVM_REQUEST_QUEUE Database Tables
When Process Manager processes/completes a row in the PVM_WORK_ITEM or PVM_REQUEST_QUEUE database tables, it sets that row's STATUS value to 2 (DONE). By default, those rows are immediately and automatically removed from the tables when Process Manager has completed processing them. Therefore, using the default behavior, you will not see rows in the PVM_WORK_ITEM or PVM_REQUEST_QUEUE database tables with a status of 2 (DONE).
However, you can configure the Process Manager so that it does not remove the rows automatically when processing of the row is done. This is done using the following properties in the pvm.properties file:
- workItemCleanupInline - Set this property to "false" to prevent rows in the PVM_WORK_ITEM table from being removed automatically upon completion of a row. Conversely, set the property to "true" (or remove the property) to revert to default behavior.
- requestQueueCleanupInline - Set this property to "false" to prevent rows in the PVM_REQUEST_QUEUE table from being removed automatically upon completion of a row. Conversely, set the property to "true" (or remove the property) to revert to default behavior.
If you use the properties shown above to prevent automatic removal of completed rows, you can use the properties listed below to configure background cleanup of completed rows:
- workItemCleanupBatchCount - The number of batches to process, in the background, to remove completed rows from the PVM_WORK_ITEM table. The background process stops when this count is reached, or the number of completed rows is less than the BatchSize (see below). A value of -1 causes all completed rows to be removed.
Default = -1
- workItemCleanupBatchSize - The number of completed rows to remove from the PVM_WORK_ITEM table in each batch.
Default = 500 (minimum is 250)
- workItemCleanupInterval - The frequency to perform the background cleanup of the PVM_WORK_ITEM table. Specified as either of the following:
Default = P30 (minimum is P15)
- requestQueueCleanupBatchCount - The number of batches to process, in the background, to remove completed rows from the PVM_REQUEST_QUEUE table. The background process stops when this count is reached, or the number of completed rows is less than the BatchSize (see below). A value of -1 causes all completed rows to be removed.
Default = -1
- requestQueueCleanupBatchSize - The number of completed rows to remove from the PVM_REQUEST_QUEUE table in each batch.
Default = 1000 (minimum is 500)
- requestQueueCleanupInterval - The frequency to perform the background cleanup of the PVM_REQUEST_QUEUE table. Specified as either of the following:
Default = P30 (minimum is P1)
Note that if you elect to not use the automatic deletion of completed rows, and the number of such rows grows very large, performance may be impacted when the background cleanup job is processing, particularly if you've configured a large batch size.