14.5. 线程效率
要确保使用最佳线程数量,请将线程系统属性的值设置为 CPU 数加上一。
-
在 Red Hat Process Automation Manager 安装目录中,进入
standalone-full.xml
文件。例如,如果您为 Red Hat Process Automation Manager 使用 Red Hat JBoss EAP 安装,请转至$EAP_HOME/standalone/configuration/standalone-full.xml
。 -
打开
standalone-full.xml
文件。 -
在 &
lt;system-properties
> 标签下,将以下 JVM 属性的值设置为 CPU 的数量加上一:
org.appformer.concurrent.managed.thread.limit org.appformer.concurrent.unmanaged.thread.limit org.appformer.concurrent.indexing.thread.limit org.appformer.concurrent.rest.api.thread.limit
注意
CPU 数量加上一 个是所有属性的有效基准值。根据其他测试,您可能需要进一步微调。