【问题标题】:spring integration dispatcher threadsSpring集成调度程序线程
【发布时间】:2023-03-15 09:05:01
【问题描述】:

以下配置是否会导致内存泄漏或线程无法正常关闭。有这样的配置是不是个好主意。

 <int:bridge input-channel="channel1" output-channel="processingChannel"></int:bridge>

 <int:bridge input-channel="channel2" output-channel="processingChannel"></int:bridge>

 <int:bridge input-channel="channel3" output-channel="processingChannel"></int:bridge>

 <int:bridge input-channel="channel4" output-channel="processingChannel"></int:bridge>

 <int:channel id="processingChannel">     
 <int:dispatcher task-executor="executor"/>
 </int:channel> 

【问题讨论】:

    标签: spring spring-integration


    【解决方案1】:

    框架内的此类配置没有已知问题。最好的办法是使用 jstack 进行线程转储,以了解您的线程在做什么。

    【讨论】:

    • 好的,谢谢。我不确定您是否能看到我发布的完整配置
    • 由于某种原因,它在主要描述中不可见。我有四个通道通过网桥连接到 processingChannel。
    • 代码前至少要有4个空格,尤其是XML;我编辑了你的问题,但它仍然没有改变我的答案;该配置中没有任何内容会导致内存泄漏或框架本身中的线程卡住。
    猜你喜欢
    • 2014-02-16
    • 2013-08-16
    • 2017-07-30
    • 1970-01-01
    • 1970-01-01
    • 2020-06-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多