This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch 389-ds-base-1.3.4
in repository 389-ds-base.
commit 294ebbd8b38f1e70bfb723a16445e6a8eee4024a
Author: Mark Reynolds <mreynolds(a)redhat.com>
Date: Thu Mar 30 15:26:00 2017 -0400
Issue 49035 - dbmon.sh shows pages-in-use that exceeds the cache size
Bug Description: dbmon shows negative free cache stats because the pages-in-use
exceeds
the expected size of the cache. This is because on caches smaller
than 500mb, libdb automatically increases the size by ~25%. The
tool
is only checking the configured db cache size, and in this case its
actaully larger than what was conigured in dse.ldif.
Fix Description: dbmon.sh should use the libdb's "cache size in bytes",
instead of
nsslapd-dbcachesize - as it could be different.
https://pagure.io/389-ds-base/issue/49035
Reviewed by: nhosoi & wibrown (Thanks!!)
(cherry picked from commit 84ec26129744492a387e39ae5bf236f49863ee59)
---
ldap/admin/src/scripts/dbmon.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ldap/admin/src/scripts/dbmon.sh b/ldap/admin/src/scripts/dbmon.sh
index 3b8b4d1..6344304 100755
--- a/ldap/admin/src/scripts/dbmon.sh
+++ b/ldap/admin/src/scripts/dbmon.sh
@@ -46,7 +46,7 @@ parseldif() {
}
/^[^ ]|^$/ {origline = $0; $0 = unwrapline; unwrapline = origline}
/^ / {sub(/^ /, ""); unwrapline = unwrapline $0; next}
- /^nsslapd-dbcachesize/ { dbcachesize=$2 }
+ /^nsslapd-db-cache-size-bytes/ { dbcachesize=$2 }
/^nsslapd-db-page-size/ { pagesize=$2 }
/^dbcachehitratio/ { dbhitratio=$2 }
/^dbcachepagein/ { dbcachepagein=$2 }
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.