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 "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2015/06/23 09:21:00 UTC

[jira] [Commented] (OAK-2989) Swap large commits to disk in order to avoid OOME

    [ https://issues.apache.org/jira/browse/OAK-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14597278#comment-14597278 ] 

Marcel Reutegger commented on OAK-2989:
---------------------------------------

The DocumentNodeStore already creates a branch when there are many changes and persists changes periodically to the DocumentStore. Can you please provide a test to reproduce the issue?

> Swap large commits to disk in order to avoid OOME
> -------------------------------------------------
>
>                 Key: OAK-2989
>                 URL: https://issues.apache.org/jira/browse/OAK-2989
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.2.2
>            Reporter: Timothee Maret
>             Fix For: 1.3.1
>
>
> As described in [0] large commits consume a fair amount of memory. With very large commits, this become problematic as commits may eat up 100GB or more and thus causing OOME and aborting the commit.
> Instead of keeping the whole commit in memory, the implementation may store parts of it on the disk once the heap memory consumption reaches a configurable threshold.
> This would allow to solve the issue and not simply mitigate it as in OAK-2968, OAK-2969.
> The behaviour may already be supported for some configurations of Oak. At least the setup Mongo + DocumentStore seemed not to support it.
> [0] http://permalink.gmane.org/gmane.comp.apache.jackrabbit.oak.devel/8196



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)