下载此文档

[MQ]关于ActiveMQ的配置.docx


文档分类:IT计算机 | 页数:约18页 举报非法文档有奖
1/18
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/18 下载此文档
文档列表 文档介绍
[MQ]关于ActiveMQ的配置.docx[MQ] 关于 ActiveMQ 的配置
转自:

目前常用的消息队列组建无非就是 MSMQ 和 ActiveMQ ,
至于他们的异同, 这里不想做过多
是一个大文件(感觉文件过大后,造成队列服务瘫死的可能
性会增大),从官网的相关配置(附录 1)也找不到哪里可以
设置数据的文件的最大 Size。)而 Amq 持久方式可以设置
Data 文件最大 Size,这样可以保证即时消息积压很多, Data
文件也不至于过大。
2)错误: Channel was inactive for too long
解决方法:
在建立连接的 Uri 中加入:
=0
参考资源:
You can do the following to fix the issues:
Append max inactivity duration to your Uri in the format below: =0
Use the same Uri at the client side as well as at the server side
Regards,
如果不这样设置,对应的错误会出现:
2008-05-07 09:22:56,343
[]-[WARN] Async
exception with no exception listener:
: Channel
was inactive for too long: localhost/:61616
: Channel
was inactive for too long: localhost/:61616
ActiveMQ 的 tcp url : tcp://localhost:61616 后面要加
入?=0 这样的参数,否则当
一段时间没有消息发送时会抛出 "Channel was inactive for
too long" 异常
3)错误: Wire format negotiation timeout: peer did not send his
wire format.
解决方法:
1)关闭 ActiveMqLog4j
打开: conf/
将: =INFO, console, logfile
修改为: =OFF
2)在建立连接的 Uri 中加入:
maxInactivityDurationInitalDelay=30000
例如北京的测试环境连接 Uri :
tcp://:61616?
=0&maxInactivityDurationInitalDelay=30000&conne
=true
参考资源:
If you get exception like this,it can mean one of three things:
You're connecting to the port not used by ActiveMQ TCP transport
Make sure to check that you're connecting to

[MQ]关于ActiveMQ的配置 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息