2.5. Improving Logging Performance
A large Directory Server deployment can create a large amount of log contents. To improve the performance under heavy load, disable access log buffering. With access log buffering disabled, Directory Server writes log entries directly to the disk.
Important
Access logging is very helpful for debugging issues in the server and monitoring client connections and failed connection attempts. Do not disable access logging in a normal operating environment.
2.5.1. Disabling Access Log Buffering Using the Command Line
To disable access log buffering using the command line:
- Set the
nsslapd-accesslog-logbuffering
parameter tooff
:# dsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-accesslog-logbuffering=off
- Restart the Directory Server instance:
# dsctl instance_name restart
2.5.2. Disabling Access Log Buffering Using the Web Console
To disable access log buffering using the Web Console:
- Open the Directory Server user interface in the web console. For details, see Logging Into Directory Server Using the Web Console section in the Red Hat Directory Server Administration Guide.
- Select the instance.
- Open Server Settings → Logging → Access Log.
- Select Disable Access Log Buffering.
- Click Save Configuration.
- Click the Actions button, and select Restart Instance.