2011-2013ForgeRock AS searchrate1 OpenDJ searchrate measure search throughput and response time searchrate options filter format string attributes Description This utility can be used to measure search throughput and response time of a directory service using user-defined searches. Options The following options are supported. Alias dereference policy ('never', 'always', 'search', or 'find') Default value: never Use asynchronous mode and don't wait for results before sending the next request Base DN format string Number of connections Default value: 1 Calculate max response time for a percentile of operations Keep connections open Keep connections open and don't rebind Argument used to evaluate the Java style format strings in program parameters (Base DN, Search Filter). The set of all arguments provided form the the argument list in order. Besides static string arguments, they can be generated per iteration with the following functions: "inc({filename})" Consecutive, incremental line from file "inc({min},{max})" Consecutive, incremental number "rand({filename})" Random line from file "rand({min},{max})" Random number "randstr({length},charSet)" Random string of specified length and optionally from characters in the charSet string. A range of character can be specified with [start-end] charSet notation. If no charSet is specified, the default charSet of [A-Z][a-z][0-9] will be used. Display results each specified number of seconds Default value: 5 Max iterations, 0 for unlimited Default value: 0 Target average throughput to achieve Default value: 0 Search scope ('base', 'one', 'sub', or 'subordinate') Default value: sub Use script-friendly mode Number of concurrent tasks per connection Default value: 1 LDAP Connection Options DN to use to bind to the server Default value: cn=Directory Manager Use the authorization identity control Directory server hostname or IP address Default value: localhost.localdomain Bind password file Certificate key store path Nickname of certificate for SSL client authentication SASL bind options Directory server port number Default value: 389 Certificate trust store path Use StartTLS to secure communication with the server Certificate trust store PIN Certificate key store PIN file Certificate trust store PIN file Use the password policy request control Password to use to bind to the server Certificate key store PIN Trust all server SSL certificates Use SSL for secure communication with the server Utility Input/Output Options No properties file will be used to get default command line argument values Path to the file containing default property values used for command line arguments Use verbose mode General Options Display version information Display usage information Exit Codes 0 The command completed successfully. 89 An error occurred while parsing the command-line arguments. Examples The following example demonstrates measuring search performance. $ grep ^uid: /path/to/Example.ldif | sed -e "s/uid: //" > names.txt $ searchrate -p 1389 -b dc=example,dc=com -A -F -c 4 -t 4 -g "rand(names.txt)" "(uid=%s)" ------------------------------------------------------------------------------- Throughput Response Time (ops/second) (milliseconds) recent average recent average 99.9% 99.99% 99.999% err/sec Entries/Srch ------------------------------------------------------------------------------- 1475.9 1475.9 0.423 0.423 6.938 126.236 126.236 0.0 1.0 2596.5 2038.4 0.254 0.315 6.866 12.980 126.236 0.0 1.0 3210.7 2428.2 0.205 0.267 5.733 11.710 126.236 0.0 1.0 3080.5 2591.0 0.215 0.252 5.733 10.541 126.236 0.0 1.0 3236.9 2720.1 0.203 0.240 5.258 10.514 126.236 0.0 1.0 3181.1 2796.8 0.207 0.234 5.258 10.384 126.236 0.0 1.0 3202.5 2854.8 0.206 0.229 4.825 10.384 126.236 0.0 1.0 ^C