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

你可能感兴趣的:(java,apache,activemq)