Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
Description
OOM is observed for FIXED_BYTESTRING_CACHE consuming approx 22GB of memory.
This is called for token converting to proto for: Kind (fixed) and service (its either container id and blockId), so service part calling below just adding to map consuming memory.
setKindBytes(getFixedByteString(tok.getKind())).
setServiceBytes(getFixedByteString(tok.getService()));
org.apache.hadoop.ozone.protocolPB.OzonePBHelper#getFixedByteString
public static ByteString getFixedByteString(Text key) {
ByteString value = FIXED_BYTESTRING_CACHE.get(key);
if (value == null)
return value;
}
Token service is either containerId or blockId, so no need maintain cache for this as most of time, this will be unique.
Attachments
Attachments
Issue Links
- relates to
-
HDDS-9882 Share ByteString-related code between OzonePBHelper classes
- Resolved
- links to