I had same question and verified the reference https://apacheignite.readme.
io/docs/capacity-planning-bak by API
igniteInstance.cluster().metrics().getHeapMemoryUsed() and MemoryMXBean
with simple program. The reference is accurate:)

Best regards,
Duke
If not now, when? If not me, who?

On Sat, Jan 7, 2017 at 6:23 AM, vkulichenko <[email protected]>
wrote:

> You can serialize the object and check the length of the byte array:
>
> byte[] arr = ignite.configuration().getMarshaller().marshal(new
> Person(10L,
> "first", "last"));
> System.out.println(arr.length);
>
> Then refer to this page to calculate the total cache capacit:
> https://apacheignite.readme.io/docs/capacity-planning-bak
>
> -Val
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Size-of-an-Object-tp9945p9951.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Reply via email to