ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yakov Zhdanov <yzhda...@apache.org>
Subject Re: Data Cache memory crash
Date Wed, 20 May 2015 14:22:42 GMT
Currently Ignite has an issue with page size and scan query. If your scan
query does not use any predicates, can you please switch to iteration over
entrySet() for now?

Here is the ticket you can track -
https://issues.apache.org/jira/browse/IGNITE-872

--Yakov

2015-05-20 16:33 GMT+03:00 ali <ali.chekir@gmail.com>:

>
> Here are the interesting points of the code.
>
> The other parts are not very relevant.
>
>
> private long offHeapMemoryMaxSize = 4 * 1024L * 1024L * 1024L;
>
>     // Cache Configuration
>     CacheConfiguration<K, V> cacheConf = new CacheConfiguration<K, V>();
>     cacheConf.setName(cacheName);
>     cacheConf.setEvictionPolicy(new FifoEvictionPolicy<>(1000));
>     cacheConf.setOffHeapMaxMemory(offHeapMemoryMaxSize);
>     cacheConf.setSwapEnabled(true);
>     cacheConf.setMemoryMode(CacheMemoryMode.OFFHEAP_TIERED);
>     cacheConf.setCacheMode(CacheMode.PARTITIONED);
>     ...
>
>
>     // Ignite configuration
>     IgniteConfiguration conf = new IgniteConfiguration();
>     conf.setGridName(name);
>     final FileSwapSpaceSpi fileSwapSpaceSpi = new FileSwapSpaceSpi();
>     conf.setSwapSpaceSpi(fileSwapSpaceSpi);
>     ...
>
>     // cache data access
>     cache.query(new ScanQuery<K,
> V>().setPageSize(256).setLocal(true)).iterator();
>     ...
>
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Data-Cache-memory-crash-tp341p344.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Mime
View raw message