From 2d36e2f67cbbaf0487f7cc7de3c8081e5d7d494f Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Mon, 12 Dec 2011 11:57:14 +0000
Subject: [PATCH] Fix OPENDJ-383 : Expose JE fileCacheSize property through OpenDJ configuration and admin Added optional ds-cfg-db-log-filecache-size attribute.
---
opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/LocalDBBackendConfiguration.xml | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/LocalDBBackendConfiguration.xml b/opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/LocalDBBackendConfiguration.xml
index a114369..4d61c59 100644
--- a/opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/LocalDBBackendConfiguration.xml
+++ b/opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/LocalDBBackendConfiguration.xml
@@ -663,6 +663,36 @@
</ldap:attribute>
</adm:profile>
</adm:property>
+ <adm:property name="db-log-filecache-size" advanced="true">
+ <adm:synopsis>
+ Specifies the size of the file handle cache.
+ </adm:synopsis>
+ <adm:description>
+ The file handle cache is used to keep as much opened log files
+ as possible. When the cache is smaller than the number of logs,
+ the database needs to close some handles and open log files it needs,
+ resulting in less optimal performances. Ideally, the size of the cache
+ should be higher than the number of files contained in the database.
+ Make sure the OS number of open files per process is also tuned
+ appropriately.
+ </adm:description>
+ <adm:requires-admin-action>
+ <adm:component-restart />
+ </adm:requires-admin-action>
+ <adm:default-behavior>
+ <adm:defined>
+ <adm:value>100</adm:value>
+ </adm:defined>
+ </adm:default-behavior>
+ <adm:syntax>
+ <adm:integer lower-limit="3" upper-limit="2147483647" />
+ </adm:syntax>
+ <adm:profile name="ldap">
+ <ldap:attribute>
+ <ldap:name>ds-cfg-db-log-filecache-size</ldap:name>
+ </ldap:attribute>
+ </adm:profile>
+ </adm:property>
<adm:property name="db-logging-file-handler-on" advanced="true">
<adm:synopsis>
Indicates whether the database should maintain a je.info file in
--
Gitblit v1.10.0