public static int memoryOverhead(Class<?> clazz) {
    return (int) sizeof(clazz);
  }
Returns the amount of memory used to store an instance
of the given class. Note that this does not include
memory used by objects referenced from fields of the
instance.
geode-core/src/main/java/org/apache/geode/internal/JvmSizeUtils.java