2017-06-27 29 views
1
<!-- Configure internal thread pool. --> 
<!--property name="publicThreadPoolSize" value="64"/--> 

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

這是我嘗試的兩種配置。我如何配置公共和系統線程池大小ignat

錯誤

Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: 
Invalid property 'systemThreadPoolSize' of bean class [org.apache.ignite.configuration.CacheConfiguration]: 
Bean property 'systemThreadPoolSize' is not writable or has an invalid setter method. Does the parameter 
type of the setter match the return type of the getter? 

Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: 
Invalid property 'publicThreadPoolSize' of bean class [org.apache.ignite.configuration.CacheConfiguration]: 
Bean property 'publicThreadPoolSize' is not writable or has an invalid setter method. Does the parameter 
type of the setter match the return type of the getter? 

在這裏,我想出來的配置。 https://apacheignite-cpp.readme.io/v2.0/docs/performance-tips 他們大多數似乎不正確。任何人也可以建議我在哪裏可以找到xml配置的屬性名稱,以在FULL_SYNC模式下進行性能調整。

+0

請分享您的完整的Ignite配置文件 –

回答

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> 
+0

好吧,我現在已經把它放在下點燃組態。但我的進程的線程數仍然沒有增加。它的48.是否有任何其他配置用於更改線程池大小。 –

+0

當需要時,Ignite將創建更多線程。嘗試發送數百個計算任務,公共池用於執行這些任務,點火將增加其大小以處理所有發送的計算任務。 – Michael