gpt4 book ai didi

c++ - 我如何在点燃中配置公共(public)和系统线程池大小

转载 作者:行者123 更新时间:2023-11-30 03:30:44 27 4
gpt4 key购买 nike

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

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

这是我尝试过的两种配置。

错误

 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他们中的大多数似乎是不正确的。还可以建议我在哪里可以找到用于在 FULL_SYNC 模式下进行性能调整的 xml 配置的属性名称。

最佳答案

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

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

关于c++ - 我如何在点燃中配置公共(public)和系统线程池大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44772278/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com