You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Lin Wen Tong <d....@gmail.com> on 2012/10/02 22:19:55 UTC
what to do when storage is full?
Hi All,
I have load tested our activeMQ (5.6.0) and our shared drive is 99% full.
Our activeMQ broker shutdown, throwing:
Failed to remove consumer: ID:localhost-34991-1349123928205-0:1:74:2201.
Reason: org.apache.activemq.broker.BrokerStoppedException: Broker has been
stopped: org.apache.activemq.broker.BrokerService$3@59ee56e4 |
org.apache.activemq.broker.TransportConnection | ActiveMQ Task-2602
org.apache.activemq.broker.BrokerStoppedException: Broker has been stopped:
org.apache.activemq.broker.BrokerService$3@59ee56e4
at
org.apache.activemq.broker.ErrorBroker.removeConsumer(ErrorBroker.java:155)
I tried cleaning up, by removing the .redo, file and restarting activeMQ,
but the space climbs back to 99% full again. Is there a way to recover the
messages? This happened because we have a slow consumer, and our flowControl
is false.
Any help will be greatly appreciated.
Thanks,
Wen Tong
--
View this message in context: http://activemq.2283324.n4.nabble.com/what-to-do-when-storage-is-full-tp4657406.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: what to do when storage is full?
Posted by Gary Tully <ga...@gmail.com>.
yes it will. if you add a store limit, then eventually an add will
block, so a producer will block.
you wou't be able to send any more messages until sufficient messages
are consumed such that a data file can be released.
On 2 October 2012 22:42, Lin Wen Tong <d....@gmail.com> wrote:
> I moved the kahaDB path to a bigger space and it recovered:
>
> 2012-10-02 14:16:07,103 [main ] INFO MessageDatabase
> - @2056:22703857, 100000 entries recovered ..
> 2012-10-02 14:16:17,142 [main ] INFO MessageDatabase
> - @2061:27448275, 200000 entries recovered ..
> 2012-10-02 14:16:26,910 [main ] INFO MessageDatabase
> - @2067:13176930, 300000 entries recovered ..
> 2012-10-02 14:16:36,057 [main ] INFO MessageDatabase
> - @2073:11643615, 400000 entries recovered ..
> 2012-10-02 14:16:49,398 [main ] INFO MessageDatabase
> - @2079:22796289, 500000 entries recovered ..
> 2012-10-02 14:17:04,877 [main ] INFO MessageDatabase
> - @2086:700591, 600000 entries recovered ..
>
>
> I was wondering if adding a limit storage would help:
>
> <storeUsage>
> <storeUsage limit="2 gb"/>
> </storeUsage>
>
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/what-to-do-when-storage-is-full-tp4657406p4657414.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
http://redhat.com
http://blog.garytully.com
Re: what to do when storage is full?
Posted by Lin Wen Tong <d....@gmail.com>.
I moved the kahaDB path to a bigger space and it recovered:
2012-10-02 14:16:07,103 [main ] INFO MessageDatabase
- @2056:22703857, 100000 entries recovered ..
2012-10-02 14:16:17,142 [main ] INFO MessageDatabase
- @2061:27448275, 200000 entries recovered ..
2012-10-02 14:16:26,910 [main ] INFO MessageDatabase
- @2067:13176930, 300000 entries recovered ..
2012-10-02 14:16:36,057 [main ] INFO MessageDatabase
- @2073:11643615, 400000 entries recovered ..
2012-10-02 14:16:49,398 [main ] INFO MessageDatabase
- @2079:22796289, 500000 entries recovered ..
2012-10-02 14:17:04,877 [main ] INFO MessageDatabase
- @2086:700591, 600000 entries recovered ..
I was wondering if adding a limit storage would help:
<storeUsage>
<storeUsage limit="2 gb"/>
</storeUsage>
--
View this message in context: http://activemq.2283324.n4.nabble.com/what-to-do-when-storage-is-full-tp4657406p4657414.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.