activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From petrk <>
Subject Managing persistent store space
Date Fri, 26 Sep 2014 15:57:54 GMT

I have a single instance of ActiveMQ v5.9 using persistent store and we are
constantly running out of space.
We use persistent messages with KahaDB and have 50gb store defined.
The queues directory only actually contains 26GB, but ActiveMQ admin says
"Store percent used 94", is that right?
Browsing the number of pending messages in queues, there is no way there is
26GB or 50GB worth of data!

I have noticed that we have lots of ActiveMQ.Advisory.Consumer.Queue.*
topics, which we don't use, but we use the advisoryWhenFull="true" in
conjuction with sendFailIfNoSpace="true" so that we get notified when
messages can't be queued. We also expire messages after 30 days, in hope
they will get deleted. If I disable advisory message am I going to lose
these two functions?

Any ideas?

Here are the relevant bits from our activemq.xml:
<bean id="store"
class="" >
     <property name="directory" value="/opt/xyz/queues" />
     <property name="journalMaxFileLength" value="3145728" />
     <property name="checkpointInterval" value="5000" />
     <property name="cleanupInterval" value="5000" />

<broker xmlns="" 
	useJmx="true" brokerName="localhost" dataDirectory="/opt/xyz/queues"
                	<policyEntry topic=">">
                        <sharedDeadLetterStrategy processExpired="false"/>
			<policyEntry queue=">" cursorMemoryHighWaterMark="90" maxPageSize="10000"
queuePrefetch="10000" producerFlowControl="false" advisoryWhenFull="true">
            <systemUsage sendFailIfNoSpace="true">
                    <memoryUsage limit = "8 gb"/>
                    <storeUsage limit="50 gb" store="#store"/>
                    <tempUsage limit="10 gb"/>
                <discardingDLQBrokerPlugin dropAll="true"
dropTemporaryTopics="true" dropTemporaryQueues="true" />


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message