Mule 3.4 只创建了默认的 16 个线程,并且没有采用下面我的代码中指定的任何配置。
- MaxActive="100" 没有创建,它只是创建了 16 个线程并处理它们。
- INITIALISE_ALL 也不起作用,它有一个空闲线程,当提交数据时,它会创建 16 并执行该过程。所以,MaxIdle=2 也不起作用(使用 jvisualvm 监控)
为什么它不覆盖默认行为?我错过了什么吗?
我现在面临的最关键的问题是,当我向 VM 提交一些 28 个 id 时,它会处理其中的一些,剩下的没有任何线索,也没有具体的数字/模式。(我无法在我的本地盒子中复制这个问题,这发生在更高的环境中,比如 QA、UAT 盒子,并且它在没有上面提到的这个问题的情况下工作)。请帮忙。
<flow name="Event0">
<vm:inbound-endpoint ref="PROCESS.EVENT0" />
<pooled-component>
<spring-object bean="abcProcess" />
<pooling-profile exhaustedAction="WHEN_EXHAUSTED_WAIT" initialisationPolicy="INITIALISE_ALL" maxActive="100" maxIdle="2" maxWait="20000" />
</pooled-component>
<custom-exception-strategy class="org.mule.exception.DefaultMessagingExceptionStrategy">
<commit-transaction exception-pattern="*" />
<vm:outbound-endpoint ref="ErrorHandlerInput" />
</custom-exception-strategy>
</flow>