14.6. 线程效率

为确保使用最佳线程数量,请将线程系统属性的值设置为 CPU 数加上一 的总和。

  1. 在 Red Hat Process Automation Manager 安装目录中,进入 standalone-full.xml 文件。例如,如果您为 Red Hat Process Automation Manager 使用 Red Hat JBoss EAP 安装,请转到 $EAP_HOME/standalone/configuration/standalone-full.xml
  2. 打开 standalone-full.xml 文件。
  3. 在 & 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 的数量加上一个是所有属性的有效基准值。您可能需要根据额外的测试进行进一步微调。