i have a list of simples pojos (a User class) with about 15 simple fields & 1 arrayList. Those represent users & maybe 100 or 1000 of them will be store in memory in
You can write them to ByteOutputStream, then get byte array and check its length. This will work if your pojos are Serializable.
ByteOutputStream