ignite系列之5--xml配置默认数据区大小(堆外内存,占用服务器内存)
-xml配置默认数据区大小(堆外内存,占用服务器内存)
<!--默认数据区配置,用于堆外存储数据--> <property name="dataStorageConfiguration"> <bean class="org.apache.ignite.configuration.DataStorageConfiguration"> <!-- Default memory region that grows endlessly. Any cache will be bound to this memory region unless another region is set in the cache's configuration. --> <property name="defaultDataRegionConfiguration"> <bean class="org.apache.ignite.configuration.DataRegionConfiguration"> <property name="name" value="Default_Region"/> <!-- 100 MB memory region with disabled eviction. --> <property name="initialSize" value="#{1L * 1024 * 1024 * 1024}"/> <property name="maxSize" value="#{1L * 1024 * 1024 * 1024}"/> </bean> </property> </bean> </property>
本文来自博客园,作者:life_start,转载请注明原文链接:https://www.cnblogs.com/yangh2016/p/17122587.html