Julian Sedding created OAK-12070:
------------------------------------

             Summary: 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


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 ([email protected])
   2:      11911003      381152096  java.util.UUID ([email protected])
   3:       5793352      278080896  
org.apache.jackrabbit.oak.segment.remote.RemoteSegmentArchiveEntry
   4:        105964      247119568  Ljdk.internal.vm.FillerArray; 
([email protected])
   5:       5812476      232499040  java.util.LinkedHashMap$Entry 
([email protected]){noformat}



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

Reply via email to