Re: Cache metrics - cache hits and misses are 0, also isEmpty in inconsistent state with getSize

2016-05-06 Thread zshamrock
Thank you, good to know. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-metrics-cache-hits-and-misses-are-0-also-isEmpty-in-inconsistent-state-with-getSize-tp4769p4810.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Cache metrics - cache hits and misses are 0, also isEmpty in inconsistent state with getSize

2016-05-05 Thread Dmitriy Setrakyan
e overall behavior? > > Could be it controlled over JMX? > > > > -- > View this message in context: > http://apache-ignite-users.70518.x6.nabble.com/Cache-metrics-cache-hits-and-misses-are-0-also-isEmpty-in-inconsistent-state-with-getSize-tp4769p4783.html > Sent from the Apache

Re: Cache metrics - cache hits and misses are 0, also isEmpty in inconsistent state with getSize

2016-05-05 Thread Alexey Kuznetsov
pache-ignite-users.70518.x6.nabble.com/Cache-metrics-cache-hits-and-misses-are-0-also-isEmpty-in-inconsistent-state-with-getSize-tp4769p4783.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > -- Alexey Kuznetsov GridGain Systems www.gridgain.com

Re: Cache metrics - cache hits and misses are 0, also isEmpty in inconsistent state with getSize

2016-05-05 Thread zshamrock
So, it is not recommended to turn them on in production? Then how you measure you cache overall behavior? Could be it controlled over JMX? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-metrics-cache-hits-and-misses-are-0-also-isEmpty-in-inconsistent

Re: Cache metrics - cache hits and misses are 0, also isEmpty in inconsistent state with getSize

2016-05-05 Thread vdpyatkov
/Cache-metrics-cache-hits-and-misses-are-0-also-isEmpty-in-inconsistent-state-with-getSize-tp4769p4782.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Cache metrics - cache hits and misses are 0, also isEmpty in inconsistent state with getSize

2016-05-04 Thread zshamrock
Adding TimeUnit.SECONDS.sleep(5); // just to be sure we gave enough time for metrics to be updated Does not make any difference. Just to mention. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-metrics-cache-hits-and-misses-are-0-also-isEmpty-in

Cache metrics - cache hits and misses are 0, also isEmpty in inconsistent state with getSize

2016-05-04 Thread zshamrock
assert cache.metrics().getSize() == 1; assert !cache.metrics().isEmpty(); } } It worked fine (i.e. isEmpty() is false now), but still both cacheHits and cacheMisses are 0. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-metrics-cache-hits-