activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sree Panchajanyam D (JIRA)" <>
Subject [jira] [Commented] (AMQ-3210) OutOfMemory error on ActiveMQ startup
Date Tue, 23 Aug 2011 12:39:29 GMT


Sree Panchajanyam D commented on AMQ-3210:

Corrupt journal files can be identified but not corrupt metadata.
You can ensure that the metadata is synced up regularly by setting the parameters "indexWriteBatchSize"
and "checkpointInterval" to practically low values. Take a look at the documentation for these
parameters at below links: ( Optimizing the Metadata Cache)
Metadata is not synced with the cache during server crashes. 
Hence, the best thing to do is to prevent ActiveMQ from crashing. 
I see that in your xml you have used producer flow control I would advocate against it if
you are not sure why you need it.
If you are using persistent messages use them with a time to live. Allocate store space with
 following caluculation  "store space = no. of messages/second * avg message size  * time
to live * 2".
For non-persistent messages the above calc. will not hold good.

PS: in activemq.xml
            <kahaDB directory="${activemq.base}/data/kahadb"/>
			<kahaDB checkForCorruptJournalFiles="true"/>
			<kahaDB checksumJournalFiles="true"/>
			<kahaDB indexWriteBatchSize="1000"/>
                              <kahaDB checkpointInterval="1000"/>

> OutOfMemory error on ActiveMQ startup
> -------------------------------------
>                 Key: AMQ-3210
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: # 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)
> # cat /etc/debian_version 
> 5.0.8
>            Reporter: Lior Okman
>            Priority: Critical
>         Attachments: activemq.xml, exception.log, kahadb.tar.bz2
> 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.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message