mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Yannick Lecaillez
25.20.2016 b326ec684b78ad80beb7600da95c5bf29e58900b
refs
author Yannick Lecaillez <ylecaillez@forgerock.com>
Monday, January 25, 2016 18:20 +0100
committer Yannick Lecaillez <ylecaillez@forgerock.com>
Wednesday, January 27, 2016 11:51 +0100
commitb326ec684b78ad80beb7600da95c5bf29e58900b
tree 0376f838b98a2011a9ce453cc3fc02ccbbdb2e1e tree | zip | gz
parent 1d44ddb556cbac5b1eb39fd39360564bfade63d0 view | diff
OPENDJ-2631: OOME error while importing 100M entries.

Because mmap() regions are counted and limited resources, we have to use
it sparingly. Rather than pre-opening all the existing regions, this fix
creates the mmap() region only when it is actually needed by the cursor
(on the first next() call) and "release" it when the cursor is close().
1 files modified
40 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/OnDiskMergeImporter.java 40 ●●●●● diff | view | raw | blame | history