volatileDsMemPlc 的数据区域内存不足

Out of memory in data region for volatileDsMemPlc

由于失败,JVM 将立即停止:

[failureCtx=FailureContext [type=CRITICAL_ERROR, err=class o.a.i.i.mem.IgniteOutOfMemoryException: Out of memory in data region [name=volatileDsMemPlc, initSize=40.0 MiB, maxSize=100.0 MiB, persistenceEnabled=false] Try the following:
            ^-- Increase maximum off-heap memory size (DataRegionConfiguration.maxSize)
            ^-- Enable Ignite persistence (DataRegionConfiguration.persistenceEnabled)
            ^-- Enable eviction or expiration policies]]

我们收到上述异常,但我们不知道如何配置 'volatileDsMemPlc' 数据区域的大小,因为该数据区域是 Ignite 的内部数据区域。

该区域的大小等于系统数据区域,配置了systemRegionInitialSizesystemRegionMaxSize参数,默认分别为40MB和100MB:

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd">
    <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">

        <property name="dataStorageConfiguration">
            <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
                <property name="systemRegionInitialSize" value="#{50 * 1024 * 1024}"/>
                <property name="systemRegionMaxSize" value="#{200 * 1024 * 1024}"/>
            </bean>
        </property>
    </bean>
</beans>

如果您对什么是易变区域感兴趣:https://issues.apache.org/jira/browse/IGNITE-13658