首页 文章

spring集成消息驱动通道适配器

提问于
浏览
0

我正在使用消息驱动通道适配器从weblogic JMS队列接收xml消息作为字符串,然后将此消息传递给spring集成通道以存储到数据库中,转换为不同的xml然后将转换后的xml发送到另一个远程weblogic JMS队列 .

我的疑问是,我设置了concurrent-consumers =“30”,max-concurrent-consumers =“100”,idle-consumer-limit =“50”这是正确的吗?

我必须为并发消费者,最大并发消费者,空闲消费者限制设置正确的值,以便在 生产环境 系统中获得最佳性能,我们将在 生产环境 系统中每分钟获得超过10K消息 .

<int-jms:message-driven-channel-adapter
id="jmsInputQueueAdaptor_DX" channel="requestChannel" connection-factory="connectionFactory"  destination="cbcmInputQueue_DX"
error-channel="errorChannel" 
concurrent-consumers="30" 
max-concurrent-consumers="100"  
idle-consumer-limit="50"         
receive-timeout="500"
send-timeout="500"
acknowledge="auto" 
/>

1 回答

  • 2

    你的 Value 观似乎是一个良好的开端 .

    实现最佳/最佳性能有很多因素 . 就像XML转换的速度和硬件(核心数,CPU速度等)一样

    你真的只需要测试并找到你的瓶颈所在 . 如果您没有充分利用CPU,那么添加更多的消费者 .

相关问题