我正在运行Apache Ignite Server的docker容器,我正在使用AWS ECS进行docker orchestration . 我观察到点燃容器消耗100%并且容器因内存不足而重新启动 . 我的缓存大小不超过500 MB,但仍然点燃容器消耗的内存高达5-6 GB .

下面是我的配置文件:

<?xml version="1.0" encoding="UTF-8"?>
  <beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:util="http://www.springframework.org/schema/util"
   xsi:schemaLocation="http://www.springframework.org/schema/beans
                       http://www.springframework.org/schema/beans/spring-beans.xsd
                       http://www.springframework.org/schema/util
                       http://www.springframework.org/schema/util/spring-util.xsd">
<bean class="org.apache.ignite.configuration.IgniteConfiguration">
    <property name="igniteInstanceName" value="GRID_NAME"/>
    <property name="localHost" value="MY_IP"/>
    <property name="discoverySpi">
        <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
            <property name="ipFinder">
                <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.zk.TcpDiscoveryZookeeperIpFinder">
                    <property name="zkConnectionString" value="ZK_IP:2181/ROOT_PATH"/>
                    <property name="retryPolicy">
                        <bean class="org.apache.curator.retry.RetryForever">
                            <constructor-arg value="2000"/>
                        </bean>
                    </property>
                    <property name="serviceName" value="SERVICE_NAME"/>
                    <property name="allowDuplicateRegistrations" value="true"/>
                </bean>
            </property>
        </bean>
    </property>

    <property name="atomicConfiguration">
        <bean class="org.apache.ignite.configuration.AtomicConfiguration">
            <property name="cacheMode" value="REPLICATED"/>
        </bean>
    </property>

    <property name="collisionSpi">
        <bean class="org.apache.ignite.spi.collision.jobstealing.JobStealingCollisionSpi">
            <property name="activeJobsThreshold" value="100"/>
            <property name="waitJobsThreshold" value="5"/>
        </bean>
    </property>

    <property name="connectorConfiguration">
        <bean class="org.apache.ignite.configuration.ConnectorConfiguration">
            <property name="host" value="MY_IP"/>
            <property name="port" value="PORT"/>
        </bean>
    </property>

    <property name="dataStorageConfiguration">
        <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
            <property name="pageSize" value="8192"/>
            <property name="systemRegionInitialSize" value="524288000"/>
            <property name="systemRegionMaxSize" value="1073741824"/>

            <property name="defaultDataRegionConfiguration">
                <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
                    <property name="pageEvictionMode" value="RANDOM_LRU"/>
                    <property name="metricsEnabled" value="true"/>
                    <property name="persistenceEnabled" value="false"/>
                </bean>
            </property>
        </bean>
    </property>

    <property name="eventStorageSpi">
        <bean class="org.apache.ignite.spi.eventstorage.memory.MemoryEventStorageSpi">
        </bean>
    </property>

    <property name="loadBalancingSpi">
        <list>
            <bean class="org.apache.ignite.spi.loadbalancing.roundrobin.RoundRobinLoadBalancingSpi">
            </bean>
        </list>
    </property>

    <property name="gridLogger">
        <bean class="org.apache.ignite.logger.log4j.Log4JLogger">
            <property name="level" value="INFO"/>
        </bean>
    </property>

    <property name="metricsLogFrequency" value="0"/>
</bean>

有人可以告诉我我的配置文件有什么问题,或者我是否需要更改任何其他配置才能使用50%的可用内存 .