public static int memoryOverhead(byte[] byteArray) {
    if (byteArray == null) {
      return 0;
    }
    int result = getObjectHeaderSize();
    result += 4; // array length field
    result += byteArray.length;
    return roundUpSize(result);
  }
Returns the amount of memory used to store the given
byte array. Note that this does include the
memory used to store the bytes in the array.
geode-core/src/main/java/org/apache/geode/internal/JvmSizeUtils.java