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:
  1. Set the nsslapd-accesslog-logbuffering parameter to off:
    # dsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-accesslog-logbuffering=off
  2. 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:
  1. 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.
  2. Select the instance.
  3. Open Server SettingsLoggingAccess Log.
  4. Select Disable Access Log Buffering.
  5. Click Save Configuration.
  6. Click the Actions button, and select Restart Instance.