ejb – Wildfly 10中的默认slsb-strict-max-pool大小

在wildfly 10服务器启动时,我们得到slsb-strict-max-pool为64

2017-08-24 12:51:09,164 INFO  [org.jboss.as.ejb3] (MSC service thread 1-5) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 64 (per class), which is derived from thread worker pool sizing.
2017-08-24 12:51:09,166 INFO  [org.jboss.as.ejb3] (MSC service thread 1-5) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 16 (per class), which is derived from the number of CPUs on this host.

但是当我在jboss-cli下面执行时,**最大池大小为20 **,如下图所示

/host=master/server=server-one/subsystem=ejb3/strict-max-bean-instance-pool=slsb-strict-max-pool/:read-resource(recursive=false)

《ejb – Wildfly 10中的默认slsb-strict-max-pool大小》

究竟什么是Wildfly 10中ejb的默认最大池大小?

最佳答案 默认情况下,池大小是动态的,因为它是从工作线程池大小(“derive-size”属性)派生的.因此,在您的情况下,您有4个CPU核心,并且池大小为64.

在这种情况下,忽略max-pool-size值,因此wildfly接口所说的是正确的运行时值.

https://wildscribe.github.io/WildFly/10.1/subsystem/ejb3/strict-max-bean-instance-pool/index.html

点赞