Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/380.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java spring集成消息驱动通道适配器_Java_Spring_Jms_Integration_Weblogic12c - Fatal编程技术网

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

Java spring集成消息驱动通道适配器,java,spring,jms,integration,weblogic12c,Java,Spring,Jms,Integration,Weblogic12c,我使用消息驱动通道适配器从weblogic JMS队列接收xml消息作为字符串,然后将这些消息传递到spring集成通道,以便存储到数据库中,转换为不同的xml,然后将转换后的xml发送到另一个远程weblogic JMS队列 我的疑问是,我已经设置了concurrent consumers=“30” ,max concurrent consumer=“100”,idle consumer limit=“50” 这是正确的吗 为了在生产系统中获得最佳性能,我必须为并发使用者、最大并发使用者、空闲

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

我的疑问是,我已经设置了concurrent consumers=“30” ,max concurrent consumer=“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" 
/>

您的价值观似乎是一个良好的开端

实现最佳性能有很多因素。比如XML转换的速度和硬件(内核、CPU速度等)


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

您好,谢谢您的回答,我将增加计数,并在此处进行测试和更新。