HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

2. Add the attribute nsslapd-inmemory-debug-enabled: on under cn=config in the
/etc/opt/dirsrv/slapd-< slapd-instance_name >/dse.ldif file:
nsslapd-inmemory-debug-enabled: on
3. Start the server:
/opt/dirsrv/slapd-instance_name/start-slapd
To enable In-memory debug logging using ldapmodify, run the ldapmodify command with
the following LDIF:
/opt/dirsrv/bin/ldapmodify -a -D "cn=Directory Manager" p <port num>
-w <passwd> -h <hostname> -f <ldif file>
dn: cn=config
changetype: modify
replace: nsslapd-inmemory-debug-enabled
nsslapd-inmemory-debug-enabled: on
To manually disable In-memory debug logging:
1. Shutdown the server:
/opt/dirsrv/slapd-instance_name/stop-slapd
2. Update the attribute nsslapd-inmemory-debug-enabled: off under the cn=config
in the /etc/opt/dirsrv/slapd-< slapd-instance_name >/dse.ldif file:
nsslapd-inmemory-debug-enabled: off
3. Start the server:
/opt/dirsrv/slapd-instance_name/start-slapd
Steps to disable In-memory debug logging with the ldapmodify command:
/opt/dirsrv/bin/ldapmodify -a -D "cn=Directory Manager" p <port num>
-w <passwd> -h <hostname>-f <ldif file>
dn: cn=config
changetype: modify
replace: nsslapd-inmemory-debug-enabled
nsslapd-inmemory-debug-enabled: off
By default, the In-memory debug logging feature can be enabled or disabled only for the newly
created instances, by changing the /opt/dirsrv/share/data/template-dse.ldif file.
14.4.1 Resizing the In-memory debug buffer
The In-memory debug buffer size is configurable. It can be resized using the
nsslapd-inmemory-debug-buffsize attribute under cn=config by editing the dse.ldif
file. The default buffer size is 5 MB, and the maximum buffer size is 10 MB.
NOTE: To resize the buffer, first, set the value of the nsslapd-inmemory-debug-buffsize
attribute and then enable In-memory debug logging -nsslapd-inmemory-debug-enabled=on.
To resize the in-memory debug buffer:
1. Stop the slapd process:
/opt/dirsrv/slapd-instance_name/stop-slapd
2. Add the attribute nsslapd-inmemory-debug-buffsize : <value> under the
cn=config in the /etc/opt/dirsrv/slapd-<lapd-instance_name >/dse.ldif
file:
For example:
nsslapd-inmemory-debug-buffsize: 6
518 Monitoring Server and Database Activity