ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sasha Belyak <rtsfo...@gmail.com>
Subject Re: Why am I not getting the size of cache?
Date Fri, 19 May 2017 05:16:30 GMT

why you didn't use cache.size instead of cache.localSize? localSize count
only entries, stored in local node and if you ignite node connect to some
cluster this test two keys may be stored in other nodes and you get zero
local cache size... Look in logs output something like "Topology snapshot
[ver=1, servers=1, clients=0, CPUs=4, heap=3.5GB]" to find out how many
server nodes in your current topology.

Best Regards,
Alexander Belyak

2017-05-19 11:36 GMT+07:00 ignitedFox <blasteralfred@gmail.com>:

> Hi all,
> I am using the below code to insert some sample data to my cache, and
> display the count of entries in it.
> But it is showing 0. Could somebody kindly tell me why this is happening
> and
> how to fix this?
> Thanks in advance..
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Why-am-I-not-getting-the-size-of-cache-tp13014.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message