ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vyacheslav Daradur <daradu...@gmail.com>
Subject Re: Real size of a stored data in IgniteCache
Date Thu, 30 Mar 2017 14:20:09 GMT
Alexey,

Yes, it works in my case.

Does Ignite provide any methods for my case?


2017-03-30 17:04 GMT+03:00 Alexey Kuznetsov <akuznetsov@apache.org>:

> Vyacheslav,
>
> Will JVisualVM + heap dump + analyzing objects count and  sizes in heap
> dump works in your case?
>
>
>
> On Thu, Mar 30, 2017 at 8:26 PM, Vyacheslav Daradur <daradurvs@gmail.com>
> wrote:
>
> > Hello everyone.
> >
> > How do I know real size of a stored data in the IgniteCache?
> >
> > For example: I created new cache and put one object, and I want to know
> > real size of one object in cache.
> >
> > try (Ignite ignite = Ignition.start("cache-config.xml")) {
> >
> >     IgniteCache<Long, MyObject> cache = ignite.getOrCreateCache("
> > myCache");
> >
> >     MyObject obj = new MyObject()
> >
> >     cache.put(obj.getLongId(), obj);
> > }
> >
> > I looked at ClusterMetrics and CacheMetrics, but I'am not sure wich
> method
> > is real needed to me.
> >
> > p.s. I haven't found the answer in search.
> >
> > --
> > Best Regards, Vyacheslav
> >
>
>
>
> --
> Alexey Kuznetsov
>



-- 
Best Regards, Vyacheslav

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message