Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8274308

Improve efficiency for HandshakeContext initialization.

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:

      Description

      SSL startHandshake profiles show that a significant time is spent on HandshakeContext initialization to get the
      activeCipherSuite and activeProtocols, These parameters depends on configuration already available to the client/
      server and does not depend on the response from the server/client.

      We propose moving these to the SSLSocketFactory and reusing the activeCipherSuite and activeProtocols instead of
      creating these for each handshake.This could improve the efficiency of the handshake process by reducing the computation
      needed for creating these lists.

      Please find attached the JFR profiles for handshake process. I've also attached benchmarks from the proof of concept for
      the above proposed method.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cverghese Clive Verghese
              Reporter:
              cverghese Clive Verghese
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: