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

Improve efficiency for HandshakeContext initialization.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • security-libs

      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.

            Unassigned Unassigned
            cverghese Clive Verghese
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: