Increasing numbers of Apache ActiveMQ journal log files in certain SAS® 9.4 Enterprise BI and SAS® Visual Analytics environments fill up disk space


In certain cases, the number of journal logs that reside in the SAS-configuration-file\Lev1\Web\activemq\data\kahadb directory grows over time, causing disk space to fill up.

A file listing in this directory appears similar to the following:

monthdaytimedbxxlog
Nov501:39db-11.log
Nov607:56db-12.log
Nov713:29db-13.log
Nov819:02db-14.log

. . .more data lines. . .

This problem occurs because the broadcastTopic messages in ActiveMQ do not expire. As a result, the dead-letter queue (DLQ) fills up, leading to filled kahadb db_*.log files. This broadcast topic is used by the distributed in-process (DIP) scheduler, the DIP job runner, and the job execution services (JES) job runner.

To work around this issue, you have to purge the DLQ.

Purging the Dead-Letter Queue

This workaround cleans up the disk space by enabling ActiveMQ to clean up the kahadb log files that are referenced. The manual purge has no effect on newly created kahadb log files.

To purge the DLQ, complete these steps:

  1. Use the sas.servers script to stop all of the middle-tier servers. Caution: You must stop the middle-tier servers before you delete the kahadb/*.log files. Deleting the log files from an actively running instance of ActiveMQ can lead to an unrecoverable situation.

  2. Remove the contents of the SAS-configuration-directory/Levn/Web/activemq/data/ directory by submitting the following command:
    rm –r SAS-configuration-directory/Levn/Web/activemq/data/*

Notes: