I wanna put entries into off-heap area by the following configuration:  

Cache definition:

                                <bean
class="org.apache.ignite.configuration.CacheConfiguration">
                                        <property name="name"
value="commercialCache"></property>
                                        <property name="statisticsEnabled"
value="true" />
                                        <property name="onheapCacheEnabled"
value="false" />
                                        <property name="indexedTypes"
                                                value="java.lang.Long,
com.calm.report.model.Commercial" />

                                        <property name="cacheMode"
value="PARTITIONED" />
                                        <property name="backups" value="0"
/>

                                        <property name="memoryPolicyName"
value="50M_Region_Eviction" />
                                </bean>

 Memory Policy :50M_Region_Eviction
                                                <bean
class="org.apache.ignite.configuration.MemoryPolicyConfiguration">
                                                        <property
name="name" value="50M_Region_Eviction" />
                                                        
                                                        <property
name="initialSize" value="#{25 * 1024 * 1024}" />
                                                        
                                                        <property
name="maxSize" value="#{50 * 1024 * 1024}" />
                                                        <property
name="metricsEnabled" value="true" />
                                                </bean>

But  check the Ignitevisorcmd  console, but it always displayed 0 entry 
like:

Entries (Heap / Off-heap)
max: 20098 (20098 / 0)

why ? what's my mistake?

thanks.




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Zero-entry-in-off-heap-tp15442.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to