search cancel

DA activemq keeps restarting

book

Article ID: 238082

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Data Aggregator activemq process keeps restarting and data collectors will not connect.  The following is seen in the activemq.log

2022-03-27 03:26:04,092 | WARN  | Cannot recover ackMessageFileMap | org.apache.activemq.store.kahadb.MessageDatabase | main
java.io.EOFException
    at java.io.RandomAccessFile.readInt(RandomAccessFile.java:803)[:1.8.0_222]
    at org.apache.activemq.util.RecoverableRandomAccessFile.readInt(RecoverableRandomAccessFile.java:169)[activemq-kahadb-store-5.15.8.jar:5.15.8]
    at org.apache.activemq.store.kahadb.disk.journal.DataFileAccessor.readRecord(DataFileAccessor.java:82)[activemq-kahadb-store-5.15.8.jar:5.15.8]

Cause

corrupt file in kahadb

Environment

Dx NetOps Performance Management any version

Resolution

  • Stop DA and activemq processes
    • service dadaemon stop
    • service activemq stop
  • Move off /opt/IMDataAggregator/data/broker/kahadb to kahadb.orig
  • Restart services
    • service dadaemon start (activemq should start on it's own)