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

时间:2017-08-24 07:47:08

标签: ejb wildfly ejb-3.0 wildfly-10

在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下面执行时,**max pool size is 20**如下图所示

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

enter image description here

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

1 个答案:

答案 0 :(得分:1)

默认情况下,池大小是动态的,因为它是从工作线程池大小(“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