ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lawrence Finn (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-3599) Offheap cache memory leaks
Date Mon, 20 Mar 2017 15:45:41 GMT

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

Lawrence Finn commented on IGNITE-3599:
---------------------------------------

I am seeing this problem in production too.  It's not a small memory leak, the entire cache's
memory doesn't free.  

> Offheap cache memory leaks
> --------------------------
>
>                 Key: IGNITE-3599
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3599
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.6
>            Reporter: Alisher Alimov
>            Priority: Critical
>
> Seems that Offheap cache doesn't free memory resources on IgniteCache#destroy()
> Example:
> {code}
>         CacheConfiguration<UUID, UUID> cacheCfg = new CacheConfiguration<>(UUID.randomUUID().toString());
>         cacheCfg.setBackups(0);
>         cacheCfg.setCacheMode(CacheMode.PARTITIONED);
>         cacheCfg.setAtomicityMode(CacheAtomicityMode.ATOMIC);
>         cacheCfg.setMemoryMode(CacheMemoryMode.OFFHEAP_TIERED);
>         cacheCfg.setEvictionPolicy(new FifoEvictionPolicy(1));
>         cacheCfg.setOffHeapMaxMemory(16000000); // ~1 000 000 UUIDs 
>         cacheCfg.setSwapEnabled(false);
>         for (; ; ) {
>             IgniteCache<UUID, UUID> cache = analyticsContext.getIgnite().getOrCreateCache(UUID.randomUUID().toString());
>             for (int j = 0; j < 1000000; j++) {
>                 cache.put(UUID.randomUUID(), UUID.randomUUID());
>             }
>             cache.clear();
>             cache.destroy();
>         }
> {code}
> After several iteration for create/fill/destroy operations you could see that using memory
for current process is always increasing and seems that off heap cache doesn't free memory
resources on IgniteCache#destroy 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message