如何在ignite中配置公共和系统线程池大小

时间:2017-06-27 04:27:53

标签: c++ ignite in-memory-database

999500

以下是我尝试的两种配置。

错误

<!-- Configure internal thread pool. -->
<!--property name="publicThreadPoolSize" value="64"/-->

<!-- Configure system thread pool. -->
<!--property name="systemThreadPoolSize" value="24"/-->

我正在尝试这里的配置。 https://apacheignite-cpp.readme.io/v2.0/docs/performance-tips 他们中的大多数似乎是不正确的。还可以建议在哪里可以找到xml配置的属性名称,以便在FULL_SYNC模式下进行性能调整。

1 个答案:

答案 0 :(得分:2)

你把它放在错误的地方,你把它放在缓存配置中,而它必须是点燃配置的一部分:

 <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">

....

  <property name="publicThreadPoolSize" value="100"/>
  <property name="systemThreadPoolSize" value="100"/>

....

   <property name="cacheConfiguration">
      <list>
          <!-- NOT HERE -->
      </list>
   </property>
</bean>