Hi,
As per Ignite Docs, Ignite 2.0 Memory page feature defaults memory
assignment to off-heap memory.
These will be snippets from my config file:
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="firstCache40MBP"/>
<property name="cacheMode"
value="PARTITIONED"/>
<property name="onheapCacheEnabled"
value="false"/>
<property name="memoryPolicyName"
value="40MB_Region_Eviction"/>
</bean>
<bean class="org.apache.ignite.configuration.MemoryPolicyConfiguration">
<property name="name"
value="40MB_Region_Eviction"/>
<property name="initialSize" value="#{20 * 1024
* 1024}"/>
<property name="maxSize" value="#{40 * 1024 *
1024}"/>
<property name="pageEvictionMode"
value="RANDOM_2_LRU"/>
</bean>
When I try to put data intocache, it is getting populated in heap memory.
Whether I set onheapCacheEnabled value or not, it is not making any
difference.
+=============================================================================================================+
| Node ID8(@), IP | CPUs | Heap Used | CPU Load | Up Time |
Size | Hi/Mi/Rd/Wr |
+=============================================================================================================+
| 0BC13BD7(@n2), 10.17.81.5 | 8 | 17.02 % | 0.07 % | 00:02:22:686 |
Total: 32540 | Hi: 0 |
| | | | | |
Heap: 32540 | Mi: 0 |
| | | | | |
Off-Heap: 0 | Rd: 0 |
| | | | | |
Off-Heap Memory: 0 | Wr: 0 |
+---------------------------+------+-----------+----------+--------------+----------------------+-------------+
Is there anything that I am missing to set ?
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Ignite2-0-and-Memory-Policies-tp12550.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.