ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Biren Shah <Biren.S...@servicenow.com>
Subject Re: Cache size changes unexpectedly
Date Wed, 22 Nov 2017 22:49:17 GMT
Hi Denis,

We are using CacheMetrics.getKeySize api to get size of a cache. Does this api give cache
size of entire cache or just the size of the partitions local to the node?


From: Denis Mekhanikov <dmekhanikov@gmail.com>
Reply-To: "user@ignite.apache.org" <user@ignite.apache.org>
Date: Wednesday, November 22, 2017 at 8:13 AM
To: "user@ignite.apache.org" <user@ignite.apache.org>
Subject: Re: Cache size changes unexpectedly

Hi Brien!

I tried to run a cluster with a cache configured like you described, but everything works
Could you provide more information about this issue? A project with a reproducer will be ideal.
Are you sure that you measure size correctly?


ср, 22 нояб. 2017 г. в 1:28, Biren Shah <Biren.Shah@servicenow.com<mailto:Biren.Shah@servicenow.com>>:

We have a cluster of 4 nodes. On start of the cluster we load our caches. In of our cache
we are load around 2 million entries. We also monitor cache size at regular interval. The
behavior we are noticing is that after initial load the cache size seems to be correct for
few mins. But then the size changes and it indicates that there are only 1 million entries
in the cache. Meaning initially cache size is ~2 million and within few minutes it changes
to ~1 million. We are deleting anything from the cache. Do entries get off loaded to off-heap?

Cluster node are setup to have 8GB memory and 8 cores.

Configuration for the cache in question is:

CacheConfiguration<String, Entry> cacheConfig = new CacheConfiguration<>();

View raw message