Use dsconfig
non-interactive mode to modify memory and specify parent
distinguished names (DNs).
To change the amount of memory used for caching database contents and to specify
common parent DNs that should be compacted in the underlying database, use the
dsconfig command in non-interactive mode.
$ bin/dsconfig set-backend-prop \
--backend-name userRoot \
--set db-cache-percent:40 \
--add "compact-common-parent-dn:ou=accts,dc=example,dc=com" \
--add "compact-common-parent-dn:ou=subs,dc=example,dc=com"