ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: Size of an Object
Date Fri, 06 Jan 2017 22:23:00 GMT
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.

Mime
View raw message