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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2015/06/18 15:41:01 UTC
[jira] [Created] (OAK-3007) SegmentStore cache does not take
"string" map into account
Thomas Mueller created OAK-3007:
-----------------------------------
Summary: SegmentStore cache does not take "string" map into account
Key: OAK-3007
URL: https://issues.apache.org/jira/browse/OAK-3007
Project: Jackrabbit Oak
Issue Type: Bug
Components: segmentmk
Reporter: Thomas Mueller
The SegmentStore cache size calculation ignores the size of the field Segment.string (a concurrent hash map). It looks like a regular segment in a memory mapped file has the size 1024, no matter how many strings are loaded in memory. This can lead to out of memory. There seems to be no way to limit (configure) the amount of memory used by strings. In one example, 100'000 segments are loaded in memory, and 5 GB are used for Strings in that map.
We need a way to configure the amount of memory used for that. This seems to be basically a cache. But instead of each segment having its own cache (as done in OAK-2688), it would be better to have one cache with a configurable size limit.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)