ActiveMQ

开发中使用ActiveMQ,遇到一些配置问题,收集一下对问题的解决方法,持续更新,待整理。

 

 

 

1.java.io.EOFException: Chunk stream does not exist at page on broker start

https://issues.apache.org/jira/browse/AMQ-2935

其中,下面这段话是关键

I have found a problem with the recovery processing in the kahaDB pageFile/index but the issue only occurs when there has been an abortive close, as in the stop method of the broker was not called or did not complete or a file write did not complete with the clean shutdown flag set.
With a successful call to broker.stop() the problem is avoided as there is no recovery of the pageFile from the redo buffer at restart so it may not be the only issue here.

The latest 5.5-SNAPSHOT from maven or the repo has the fix. It would be great if you could validate.
https://repository.apache.org/content/repositories/snapshots/org/apache/activemq/apache-activemq/5.5-SNAPSHOT/

Andy, Krzysztof, Can you verify that the broker is actually stopped in your start/stop tests.There should be messages in the log of the form: 10:55:37,927 [main ] INFO JobSchedulerStore - JobSchedulerStore:activemq-data/localhost/scheduler stopped

Eric, for your use case, schedulerSupport=false is sufficient.

 


2.Too many open files

http://activemq.2283324.n4.nabble.com/too-many-open-files-td2364996.html

http://activemq.2283324.n4.nabble.com/storeUsage-with-kahaDB-which-files-td3034710.html

 

3.socket close_wait过多,可能是 Too many open files的起因

https://issues.apache.org/jira/browse/AMQ-1739

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值