You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Josephine Barboza <jo...@nviz.com> on 2018/01/11 14:43:04 UTC

No user-defined default MemoryPolicy found

Hi,

In spite of setting a defaultMemoryPocliySize I am getting the below warning on starting the node. Is there any other configuration required?

WARNING: No user-defined default MemoryPolicy found; system default of 1GB size will be used.



<property name="memoryConfiguration">
      <bean class="org.apache.ignite.configuration.MemoryConfiguration">
        <property name="defaultMemoryPolicySize" value="#{200L * 1024 * 1024}"/>
        <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>
          </list>
        </property>
      </bean>
   </property>

Thanks.
IMPORTANT NOTICE: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager and/or the sender immediately.

RE: No user-defined default MemoryPolicy found

Posted by Alexey Popov <ta...@gmail.com>.
Hi,

Please have a look at topic below to get an estimation of memory usage:

http://apache-ignite-users.70518.x6.nabble.com/off-heap-memory-usage-tc19282.html

I will check the warning later, it looks strange to me.

Thanks,
Alexey



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

RE: No user-defined default MemoryPolicy found

Posted by Josephine Barboza <jo...@nviz.com>.
Hi Alexey,

Is there any way I can check the total memory being used by the off heap cache? I wanted to confirm if the warning is valid.
Sorry that I forgot to mention the version I am currently using. It is 2.1.


-----Original Message-----
From: Alexey Popov [mailto:tank2.alex@gmail.com] 
Sent: Thursday, January 11, 2018 9:38 PM
To: user@ignite.apache.org
Subject: Re: No user-defined default MemoryPolicy found

ok. I see you are at 2.1. (migrating from 2.1 to 2.3)



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

Re: No user-defined default MemoryPolicy found

Posted by Alexey Popov <ta...@gmail.com>.
ok. I see you are at 2.1. (migrating from 2.1 to 2.3)



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

Re: No user-defined default MemoryPolicy found

Posted by Alexey Popov <ta...@gmail.com>.
Hi,

I see the same message with 2.1 release. 2.3 does not have it.

I will check 2.1 source code later.

Do you use 2.1 release?

Thanks,
Alexey



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

RE: No user-defined default MemoryPolicy found

Posted by Josephine Barboza <jo...@nviz.com>.
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:tank2.alex@gmail.com] 
Sent: Friday, January 12, 2018 8:23 PM
To: user@ignite.apache.org
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/

Re: No user-defined default MemoryPolicy found

Posted by Alexey Popov <ta...@gmail.com>.
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/