Hello <@UDT7GFEG6> As per this <conversation>, eac...
# general
r
Hello @Jackie As per this conversation, each primary key took about 240 Bytes. But according to this doc, the total memory usage by upsert is roughly
(primaryKeysCount * (sizeOfKeyInBytes + 24))
.May I know how accurate this estimation is ?
j
Good call. The value in the doc doesn't count the overhead of entry object in the map, and the object wrapper size should be included as the
primaryKeysCount
. In reality, there are more than 100B overhead per entry stored in the ConcurrentHashMap
Found this blog which explains the java object overhead: https://dzone.com/articles/java-object-size-estimation-measuring-verifying
👍 1
n
that's a good pragmatic summary of Alex Shipilev's blogs. 👍
👍 1