[ 
https://issues.apache.org/jira/browse/IGNITE-1661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14954544#comment-14954544
 ] 

wjw465150 commented on IGNITE-1661:
-----------------------------------

Cache Config:
    <property name="cacheConfiguration">
      <list>
        <!-- Default cache -->
        <bean class="org.apache.ignite.configuration.CacheConfiguration">
          <property name="name" value="default"/>
          
          <property name="eagerTtl" value="true"/>
          
          <!-- Set cache mode. -->
          <property name="cacheMode" value="PARTITIONED"/>
          <!-- Number of backup nodes. -->
          <property name="backups" value="1"/>
          
          <!-- Always store cache entries in off-heap memory. -->
          <property name="memoryMode" value="OFFHEAP_TIERED"/>
          <!-- Enable Off-Heap memory with max size of 10 Gigabytes (0 for 
unlimited). -->
          <property name="offHeapMaxMemory" value="#{30 * 1024L * 1024L * 
1024L}"/>
          <!-- Set initial cache capacity to ~ 100M. -->
          <property name="startSize" value="#{100 * 1024 * 1024}"/>
          
          <!-- Swap Space -->
          <!-- Since swap space is on-disk, it is significantly slower than 
on-heap or off-heap memory.  -->
          <property name="swapEnabled" value="false"/>
        </bean>
      </list>
    </property>


> memory leak
> -----------
>
>                 Key: IGNITE-1661
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1661
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: ignite-1.4
>         Environment: centos 6.3
>            Reporter: wjw465150
>
> when use withExpiryPolicy cache,and CacheConfiguration.eagerTtl is set true, 
> this will cause heap memory leak!
> code sample:
>               IgniteCache<String, String> cacheDefault = 
> ignite.cache("default");
>               cache1 = cacheDefault.withExpiryPolicy(new 
> CreatedExpiryPolicy(new Duration(TimeUnit.MINUTES, 30)));



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to