Andrei Dulceanu created OAK-6538:
------------------------------------
Summary: Investigate cold standby memory consumption
Key: OAK-6538
URL: https://issues.apache.org/jira/browse/OAK-6538
Project: Jackrabbit Oak
Issue Type: Task
Components: segment-tar
Affects Versions: 1.6.1
Reporter: Andrei Dulceanu
Assignee: Andrei Dulceanu
Priority: Minor
Fix For: 1.8, 1.7.6
In an investigation from some time ago, 4GB of heap were needed for
transferring 1GB blob and 6GB for 2GB blob. This was in part due to using
{{addTestContent}} [0] in the investigation, which allocates a huge {{byte[]}}
on the heap.
OAK-5902 introduced chunking for transferring blobs between primary and
standby. This way, the memory needed for syncing a big blob should be around
the chunk size used. Solving the way test data is created, it should be
possible to transfer a big blob (e.g. 2.5 GB) with less memory.
[0]
https://github.com/apache/jackrabbit-oak/blob/trunk/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/standby/DataStoreTestBase.java#L96
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)