By default, the Directory Server ships with the built-in "Stats Logger' disabled. To enable it using the dsconfig tool or the Administrative Console, go to Plugins menu (available on the Advanced object menu), and then, select .
  1. Run dsconfig in interactive mode. Enter the LDAP or LDAPS connection parameters when prompted.
    $ bin/dsconfig
  2. Enter o to change to the Advanced Objects menu.
  3. On the main menu, enter the number for Plugins.
  4. On the Plugin menu, enter the number corresponding to view and edit an existing plugin.
  5. On the Plugin selection list, enter the number corresponding to the Stats Logger.
  6. On the Stats Logger Plugin menu, enter the number to set the enabled property to TRUE. When done, enter f to save and apply the configuration. The default logger will log information about the server every second to <server-root>/logs/dsstats.csv. If the server is idle, nothing will be logged, but this can be changed by setting the suppress-if-idle property to FALSE (suppress-if-idle=false).
    >>>> Configure the properties of the Stats Logger Plugin
    
    Property                Value(s)
    ------------------------------------------------------------------------
    1)   description        Logs performance stats to a log file
                            periodically.
    2)   enabled                     false
    3)   local-db-backend-info       basic
    4)   replication-info            basic
    5)   entry-cache-info            -
    6)   host-info                   -
    7)   included-ldap-application   If per-application LDAP stats is enabled,
                                     then stats will be included for all
                                     applications.
    8)   log-interval                1 s
    9)   collection-interval         200 ms
    10)  suppress-if-idle            true
    11)  header-prefix-per-column    false
    12)  empty-instead-of-zero       true
    13)  lines-between-header        50
    14)  included-ldap-stat          active-operations, num-connections,
                                     op-count-and-latency, work-queue
    15)  included-resource-stat      memory-utilization
    16)  histogram-format            count
    17)  histogram-op-type           all
    18)  per-application-ldap-stats  aggregate-only
    19)  ldap-changelog-info         -
    20)  gauge-info                  none
    21)  log-file                    logs/dsstats.csv
    22)  log-file-permissions        640
    23)  append                      true
    24)  rotation-policy             Fixed Time Rotation Policy, Size Limit
                                     Rotation Policy
    25)  retention-policy            File Count Retention Policy
    
    ?)   help
    f)   finish - apply any changes to the Periodic Stats Logger Plugin
    a)   hide advanced properties of the Periodic Stats Logger Plugin
    d)   display the equivalent dsconfig command lines to either re-create this
               object or only to apply pending changes
    b)   back
    q)   quit
    
    Enter choice [b]:
  7. Run the Directory Server. For example, if you are running in a test environment, you can run the search-and-mod-rate tool to apply some searches and modifications to the server. You can run search-and-mod-rate --help to see an example command.
  8. View the Stats log output at <server-root>/logs/dsstats.csv. You can open the file in a spreadsheet.