Menu Close
Settings Close

Language and Page Formatting Options

Chapter 7. Disabling access log buffering to improve the 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.

Note

Access logging is very helpful for debugging issues on the server, as well as monitoring client connections and failed connection attempts. Do not disable access logging in a normal operating environment.

7.1. Disabling access log buffering using the command line

If you disable access log buffering, Directory Server writes log entries directly to disk. This improves the performance in large deployments.

Procedure

  1. To disable access log buffering, enter:

    # dsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-accesslog-logbuffering=off
  2. Restart the instance:

    # dsctl instance_name restart

Verification

  1. Display the access log in continuous mode:

    # tail -f /var/log/dirsrv/slapd-instance_name/access
  2. Perform actions in the directory, such as searches.
  3. Monitor the access log. Log entries appear without delay at the moment when users perform actions in the directory.

7.2. Disabling access log buffering using the web console

If you disable access log buffering, Directory Server writes log entries directly to disk. This improves the performance in large deployments.

Procedure

  1. Navigate to ServerLoggingAccess LogSettings.
  2. Deselect Access Log Buffering Enabled.
  3. Click Save Log Settings.
  4. Click Actions in the top right corner, and select Restart Instance.

Verification

  1. Navigate to MonitoringLoggingAccess Log.
  2. Select Continuously Refresh.
  3. Perform actions in the directory, such as searches.
  4. Monitor the access log. Log entries appear without delay at the moment when users perform actions in the directory.