Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-7337

Use of SSL/TLS heavily impacts performance

    Details

      Description

      While testing the fix for OPENDJ-6857 I found that use of SSL had a 30% performance impact on the server. Note that this impact is not due to handshaking because the connections are kept open.

      Test to reproduce:

      #!/bin/bash
      
      rm -rf opendj
      ZIP=${1:-~/workspace/opendj/opendj-server/target/opendj-7.0.0-SNAPSHOT.zip}
      unzip "$ZIP" > /dev/null
      cd opendj
      
      ./setup --serverId test \
              --deploymentKeyPassword password \
              --rootUserDn uid=admin \
              --rootUserPassword password \
              --hostname localhost \
              --adminConnectorPort 4444 \
              --ldapPort 1389 \
              --ldapsPort 1636 \
              --httpsPort 8443 \
              --replicationPort 8989 \
              --profile ds-evaluation
      
      ./bin/dsconfig --offline --no-prompt --batch <<EOF
      set-log-publisher-prop --publisher-name "Json File-Based Access Logger" --set enabled:false
      set-password-policy-prop --policy-name "Root Password Policy" --set require-secure-authentication:false
      EOF
      
      export OPENDJ_JAVA_ARGS="-XX:+UseParallelGC -XX:MaxTenuringThreshold=1"
      
      ./bin/start-ds
      
      # Without SSL
      ./bin/searchrate -p 1389 -D 'uid=admin' -w password -F -c 32 -t 3 -b 'dc=example,dc=com' -g 'rand(0,100000)' '(uid=user.{})'
      
      # With SSL
      ./bin/searchrate -p 1636 -Z -X -D 'uid=admin' -w password -F -c 32 -t 3 -b 'dc=example,dc=com' -g 'rand(0,100000)' '(uid=user.{})'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                matthew Matthew Swift
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: