Collecting performance records dynamically

The performance profile information in trace is intended to help users diagnose performance problems. By using the independent trace facility, performance profiling is accomplished with minimum impact on server performance.

About this task

The independent trace facility profiles operation performance that consists of timestamps at key points that are traversed during an operation execution for a running server instance. The timestamps are profiled during different stages such as the following stages:
  • RDBM search processing
  • RDBM bind processing
  • RDBM compare processing
  • RDBM write processing
To activate tracing of performance records dynamically, complete the following steps.

Procedure

  1. Activate tracing for performance records. Issue the following command:
    ldaptrace –h hostname -p port number -D adminDN -w adminPW -l on \
    –t start -- -perf
  2. Dump the trace to a binary trace file. Issue the following command:
    ldtrc dump trace.bin
  3. Format the trace. Issue the following command:
    ldtrc fmt trace.bin trace.txt

What to do next

After you format the trace, you can analyze the trace and diagnose performance problems. To turn off tracing, issue the following command:
ldtrc off
For more information about performance profiling, see the Administering section in the IBM® Verify Directory documentation.