You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2026/02/03 12:21:00 UTC

[jira] [Updated] (OAK-12070) Reduce memory consumption of azure segment stores

     [ https://issues.apache.org/jira/browse/OAK-12070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Reschke updated OAK-12070:
---------------------------------
    Fix Version/s:     (was: 1.92.0)

> Reduce memory consumption of azure segment stores
> -------------------------------------------------
>
>                 Key: OAK-12070
>                 URL: https://issues.apache.org/jira/browse/OAK-12070
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-azure
>            Reporter: Julian Sedding
>            Assignee: Julian Sedding
>            Priority: Major
>
> An Azure segmentstore consumes quite a lot of memory. Here is an extreme example, of a store containing ~5.8mio entries.
> Per segment, there are
>  * two UUID instances, consuming 32 bytes each
>  * one RemoteSegmentArchiveEntry, consuming 48 bytes each
>  * one java.util.LinkedHashMap$Entry, consuming 40 bytes each
> I.e. each segment occupies 152 bytes in-memory, leaving some potential for optimization.
> {noformat}
> num     #instances         #bytes  class name (module)
> -------------------------------------------------------
>    1:       2212920      729326320  [B (java.base@21.0.3)
>    2:      11911003      381152096  java.util.UUID (java.base@21.0.3)
>    3:       5793352      278080896  org.apache.jackrabbit.oak.segment.remote.RemoteSegmentArchiveEntry
>    4:        105964      247119568  Ljdk.internal.vm.FillerArray; (java.base@21.0.3)
>    5:       5812476      232499040  java.util.LinkedHashMap$Entry (java.base@21.0.3){noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)