Thanks Alexey. Additionally, I think that "Started Page memory" log statement 
is a better indicator of whether the new memory size has been applied or not.

-----Original Message-----
From: Alexey Popov [mailto:[email protected]] 
Sent: Friday, January 12, 2018 8:23 PM
To: [email protected]
Subject: Re: No user-defined default MemoryPolicy found

I checked the code

Actually, you can ignore this warning ("WARNING: No user-defined default 
MemoryPolicy found; system default of 1GB size will be used."). 

Apache Ignite applies your defaultMemoryPolicySize <property 
name="defaultMemoryPolicySize" value="#{200L * 1024 * 1024}"/>

Or you can change your config to avoid such warning:

        <property name="memoryConfiguration">
            <bean
class="org.apache.ignite.configuration.MemoryConfiguration">
                <property name="memoryPolicies">
                    <list>
                        <bean
class="org.apache.ignite.configuration.MemoryPolicyConfiguration">
                            <property name="name" value="500MB_Region"/>
                            <property name="initialSize" value="#{100 * 1024
* 1024}"/>
                            <property name="maxSize" value="#{500 * 1024 * 
1024}"/>
                        </bean>
                        <bean
class="org.apache.ignite.configuration.MemoryPolicyConfiguration">
                            <property name="name" value="default"/>
                            <property name="initialSize" value="#{100L *
1024 * 1024}"/>
                            <property name="maxSize" value="#{200L * 1024 * 
1024}"/>
                        </bean>
                    </list>
                </property>
            </bean>
        </property>

Thanks,
Alexey







--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to