#21699·hazelcast

MultiMap Entry memory and Backup memory are returned as 0

Author: anatoly-hazelcastCreated Jun 28, 2022Updated Jul 27, 2026
LabelsType: DefectTeam: CoreSource: Internalgood first issue

Describe the bug For non empty MultiMap I'm always seeing 0 B for Entry memory and Backup memory image For Map I'm receiving the non-zero values. Here's the MultiMap config:

xml
<multimap name="default">
    <backup-count>1</backup-count>
    <async-backup-count>0</async-backup-count>
    <statistics-enabled>true</statistics-enabled>
    <binary>true</binary>
    <value-collection-type>SET</value-collection-type>
    <merge-policy batch-size="100">com.hazelcast.spi.merge.PutIfAbsentMergePolicy</merge-policy>
</multimap>

Here's my map config:

xml
<map name="default">
    <in-memory-format>BINARY</in-memory-format>
    <statistics-enabled>true</statistics-enabled>
    <per-entry-stats-enabled>false</per-entry-stats-enabled>
    <cache-deserialized-values>INDEX-ONLY</cache-deserialized-values>
    <backup-count>1</backup-count>
    <async-backup-count>0</async-backup-count>
    <time-to-live-seconds>0</time-to-live-seconds>
    <max-idle-seconds>0</max-idle-seconds>
    <merge-policy batch-size="100">com.hazelcast.spi.merge.PutIfAbsentMergePolicy</merge-policy>
    <read-backup-data>false</read-backup-data>
    <metadata-policy>CREATE_ON_UPDATE</metadata-policy>
    <eviction size="2147483647" max-size-policy="PER_NODE" eviction-policy="NONE"/>
    <event-journal enabled="false">
        <capacity>10000</capacity>
        <time-to-live-seconds>0</time-to-live-seconds>
    </event-journal>
    <data-persistence enabled="false">
        <fsync>false</fsync>
    </data-persistence>
    <map-store enabled="false" initial-mode="LAZY">
        <write-coalescing>true</write-coalescing>
        <write-delay-seconds>0</write-delay-seconds>
        <write-batch-size>1</write-batch-size>
    </map-store>
    <tiered-store enabled="false">
        <memory-tier>
            <capacity unit="MEGABYTES" value="256"/>
        </memory-tier>
        <disk-tier enabled="false" device-name="default-tiered-store-device"/>
    </tiered-store>
</map>

Expected behavior I'd expect to have Entry memory and Backup memory not equal 0 as long as there are both entries and backups

To Reproduce

Steps to reproduce the behavior:

  1. Tried hzStarter with platform version 5.2-SNAPSHOT (hazelcast-5.2-20220623.150841-181.jar) and with 5.1
  2. MC version: d344950c636301aecb5f44c56ea5c12d84bb902d (5.2-SNAPSHOT)
  3. Go to MultiMaps
  4. Select the only existing Multimap
  5. Go to MultiMap stats
  6. Create new view, add all columns