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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/05/27 14:39:19 UTC
[jira] [Created] (OAK-2912) Clear the modified and deleted map in
PermissionHook after processing is complete
Chetan Mehrotra created OAK-2912:
------------------------------------
Summary: Clear the modified and deleted map in PermissionHook after processing is complete
Key: OAK-2912
URL: https://issues.apache.org/jira/browse/OAK-2912
Project: Jackrabbit Oak
Issue Type: Improvement
Components: security
Reporter: Chetan Mehrotra
Priority: Minor
Fix For: 1.3.0
{{PermissionHook}} has in memory state in {{modified}} and {{deleted}} maps. In case of repository migration which is implemented as a large commit this can consume quite a bit of memory. In one of the migration it was taking ~1 GB of memory.
In a commit involving multiple commit hooks once {{PermissionHook}} has done the work it can clear that state so that memory is not held up untill all the hooks are applied. Specially as IndexingHook takes long time and also has some memory requirements
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)