Re: Cache Problems

2016-09-14 Thread Anton Vinogradov
these two files mean? > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/Cache-Problems-tp7477p7697.html > Sent from the Apache Ignite Users mailing list archive at Nabbl >

Re: Cache Problems

2016-09-13 Thread Level D
I use lucense index. By the way, what do these two files mean? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-Problems-tp7477p7697.html Sent from the Apache Ignite Users mailing list archive at Nabbl

Re: Cache Problems

2016-09-13 Thread Semyon Boikov
this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/Cache-Problems-tp7477p7697.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. >

Re: Cache Problems

2016-09-13 Thread kromulan
I've had same problem in the past but it was a memory leak in indexing code. Do you use indexing on your entities ? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-Problems-tp7477p7697.html Sent from the Apache Ignite Users mailing list archi

Re: Cache Problems

2016-09-12 Thread Level D
e can release off-heap memory during grid is running? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-Problems-tp7477p7592.html

Re: Cache Problems

2016-09-12 Thread Vladislav Pyatkov
> public Map map(List > subgrid, String arg1) throws IgniteException { > Map map = new HashMap<>(lstSql.size()); > Iterator it = subgrid.iterator(); > for (final String sql : lstSql) { > if (!it.hasNext()) > it = subgrid.iterator(); > ClusterNode node = it.next(); > map.put(new ComputeJobAdapter() { > @Override public Object execute() { > doLoadData(sql); > return 1; > } > }, node); > } > return map; > } > @Override > public Integer reduce(List results) throws > IgniteException { > int sum = 0; > for (ComputeJobResult res : results) > sum += res.getData(); > return sum; > } > private void doLoadData(String sql){ > LogPrint.LOADER_BASE_INFO_LOGGER.info("DataLoaderTaskAdapter > started ,cacheName:" + cacheName + ",sql:" + sql); > IgniteCache cache = ignitePublicService.getCache(cacheName); > long startTime = new Date().getTime(); > cache.loadCache(null, loadKey, sql); > LogPrint.LOADER_BASE_INFO_LOGGER.info("load cache use time:" + > (new Date().getTime() - startTime) + "ms, size=" + > cache.size()+",cacheName="+cacheName + ",sql:" + sql); > } > } > > By the way, does ignite proide an API to release off-heap memory? Is there > an offHeapMaxMemory property which can rule all caches within an ignite > instance instead of one cache in an ignite instance? > > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/Cache-Problems-tp7477p7592.html > > -- Vladislav Pyatkov

Re: Cache Problems

2016-09-08 Thread Level D
size=" + cache.size()+",cacheName="+cacheName + ",sql:" + sql); } } By the way, does ignite proide an API to release off-heap memory? Is there an offHeapMaxMemory property which can rule all caches within an ignite instance instead of one cache in an ignite instance? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-Problems-tp7477p7592.html

Re: Cache Problems

2016-09-07 Thread vkulichenko
Hi Zhou, Most likely this ticket is not connected with what you're seeing. Please show full cache configuration and the code sample that reproduces the behavior. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-Problems-tp7477p7592.html Sent fro

Re: Cache Problems

2016-09-04 Thread Level D
Hi Val, Thanks a lot for your reply. For the third question, I have a case. I buckup a cache in non-heap memory with some updates eveyday. When it's finished, I destory the former cache. But system memory is used more and more. Here's a url. https://issues.apache.org/jira/browse/IGNITE-2833

Re: Cache Problems

2016-09-02 Thread vkulichenko
f such bugs. Are you experiencing any unexpected behavior? 4. What do you mean by 'exchanged to hard disk'? Are you using swap? 5. Can you clarify what do you mean by that? -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-Problems-tp7477p7499.ht

Cache Problems

2016-09-02 Thread Level D
Hi all, I have several questions about ignite 1.6.0's cache. 1. When does ignite free the non-heap memory? I found a system.gc in source code, is it? 2. How can I check the data in non-heap memory with just ignite itself? 3. Are there any bugs about ignite cannot release non-heap memory cor