spring-integration - 使用 DefaultMessageListenerContainer 和 CachingConnectionFactory 的性能问题
问题描述
在我们的应用程序中,我们使用 SingleConnectionFactory 和 DefaultMessageListenerContainer 从 IBM MQ 服务器消费,应用程序的性能非常好,但是在 MQ 端,我们的应用程序随机打开了太多新连接。这是我们当前的配置。
解决方案
试试这个而不是缓存或单个:
<bean id="connectionFactory" class="org.springframework.jms.connection.DelegatingConnectionFactory">
<property name="targetConnectionFactory" ref="primaryRawInputConnectionFactory" />
<property name="shouldStopConnections" value="true"/>
</bean>
推荐阅读
- asp.net - NLog:根据记录器名称和 Quartz 日志分组写入两个不同的目标
- javascript - Material UI + React Form Hook + 多个复选框 + 默认选中
- mongodb - 根据发布版本排序,即;美国广播公司
- python - 我想知道为什么会出现这个错误,IndexError: list index out of range
- javascript - 字体真棒图标不对齐
- ssl - Qualsys 漏洞 SSL 证书 - 签名验证失败漏洞
- google-colaboratory - 如何在 Google Colab 上使用 Python 2?
- python - 将 Python np.expand_dims 翻译成 R
- java - JGraphT - 通过某些特定顶点查找路径的库算法
- c++ - 随着时间的推移,如何在 OpenGL 中平移和旋转三角形?