is these correct?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

is these correct?

kcheng.mvp
This post was updated on .
here is the environment : 1 server node + 1 client node

executed below code
===================================
IgniteCache<String,String> igniteCache =
igniteSpringBean.getOrCreateCache("HappyFlow");
        igniteCache.put("hello", "hello1");
        Assert.assertEquals("hello1",igniteCache.get("hello"));

        for (int i = 0;i < 100; i ++) {
            igniteCache.get("hello");
        }
===================================

I got below screenshot in ignitevisorcmd.sh

Hits/Misses/Reads/Writes are zero, is this expected behavior?






--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: is these correct?

dkarachentsev
Hi,

Please clarify what's wrong in your opinion?

If you mean that you do not see hits or misses - metrics are disabled by
default [1].

[1] https://apacheignite.readme.io/v2.0/docs/memory-and-cache-metrics

Thanks!
-Dmitry

30.06.2018 05:12, kcheng.mvp пишет:

> here is the environment : 1 server node + 1 client node
>
> executed below code
> ===================================
> IgniteCache<String,String> igniteCache =
> igniteSpringBean.getOrCreateCache("HappyFlow");
>          igniteCache.put("hello", "hello1");
>          Assert.assertEquals("hello1",igniteCache.get("hello"));
>
>          for (int i = 0;i < 100; i ++) {
>              igniteCache.get("hello");
>          }
> ===================================
>
> I got below screenshot in ignitevisorcmd.sh
>
> <http://apache-ignite-developers.2346864.n4.nabble.com/file/t85/WX20180629-182556%402x.png>
>
>
>
>
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: is these correct?

kcheng.mvp
Hi dkarachentsev,


oh, my fault. I did not notice this part when I look through the document.

I am supposed to post such question to user mail list.


Thank you very much.



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/