ActiveMQ
  1. ActiveMQ
  2. AMQ-3210

OutOfMemory error on ActiveMQ startup

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Incomplete
    • Affects Version/s: 5.4.2
    • Fix Version/s: 5.6.0
    • Component/s: Message Store
    • Labels:
      None
    • Environment:
      1. java -version
        java version "1.6.0_18"
        OpenJDK Runtime Environment (IcedTea6 1.8.3) (6b18-1.8.3-2~lenny1)
        OpenJDK Client VM (build 16.0-b13, mixed mode, sharing)
      1. cat /etc/debian_version
        5.0.8

      Description

      Probably due to some kind of message store corruption, when trying to start ActiveMQ, I get OutOfMemory errors and the startup simply fails.

      This can be solved by deleting /var/local/apache-activemq/kahadb, after which ActiveMQ starts with no issue.

      This issue doesn't always happen, and I'm not sure of a scenario that can reproduce this. I do have a corrupted kahadb directory that reproduces the problem.

      1. kahadb.tar.bz2
        532 kB
        Lior Okman
      2. exception.log
        116 kB
        Lior Okman
      3. activemq.xml
        5 kB
        Lior Okman

        Activity

        Lior Okman created issue -
        Lior Okman made changes -
        Field Original Value New Value
        Attachment exception.log [ 12472964 ]
        Lior Okman made changes -
        Attachment activemq.xml [ 12472965 ]
        Lior Okman made changes -
        Attachment kahadb.tar.bz2 [ 12472966 ]
        Sree Panchajanyam D made changes -
        Comment [ Sorry! please use the below configuration not the one in the PS of above comment

        <persistenceAdapter>
                    <kahaDB directory="${activemq.base}/data/kahadb" checkForCorruptJournalFiles="true" checksumJournalFiles="true" indexWriteBatchSize="1000" checkpointInterval="1000"/>
                </persistenceAdapter> ]
        Gary Tully made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.6.0 [ 12317974 ]
        Resolution Incomplete [ 4 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Lior Okman
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development