14.6. 线程效率
要确保使用最佳线程数,请将线程系统属性的值设置为 CPU 数加上一。
-
在 Red Hat Process Automation Manager 安装目录中,导航至
standalone-full.xml
文件。例如,如果您使用红帽 JBoss EAP 安装红帽流程自动化管理器,请转至$EAP_HOME/standalone/configuration/standalone-full.xml
。 -
打开
standalone-full.xml
文件。 -
在
<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
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 的数量加上一个是所有属性的有效基准值。您可能必须根据其他测试进行微调。