No user-defined default MemoryPolicy found

classic Classic list List threaded Threaded
7 messages Options
josephine.barboza josephine.barboza
Reply | Threaded
Open this post in threaded view
|

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.
Alexey Popov Alexey Popov
Reply | Threaded
Open this post in threaded view
|

Re: No user-defined default MemoryPolicy found

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/
Alexey Popov Alexey Popov
Reply | Threaded
Open this post in threaded view
|

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/
josephine.barboza josephine.barboza
Reply | Threaded
Open this post in threaded view
|

RE: No user-defined default MemoryPolicy found

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:[hidden email]]
Sent: Thursday, January 11, 2018 9:38 PM
To: [hidden email]
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/
Alexey Popov Alexey Popov
Reply | Threaded
Open this post in threaded view
|

RE: No user-defined default MemoryPolicy found

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/
Alexey Popov Alexey Popov
Reply | Threaded
Open this post in threaded view
|

Re: No user-defined default MemoryPolicy found

In reply to this post by josephine.barboza
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/
josephine.barboza josephine.barboza
Reply | Threaded
Open this post in threaded view
|

RE: No user-defined default MemoryPolicy found

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:[hidden email]]
Sent: Friday, January 12, 2018 8:23 PM
To: [hidden email]
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/