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

TLShandshake causes high cpu usage in BigInteger.montReduce

    Details

      Description

      High CPU utilization for RSA handshakes. JFR stack capture stats :

      Stack Trace Sample Count Percentage(%)
      java.math.BigInteger.montReduce(int[], int[], int, int) 498 7.366
      java.math.BigInteger.oddModPow(BigInteger, BigInteger) 498 7.366
      java.math.BigInteger.modPow(BigInteger, BigInteger) 498 7.366
      sun.security.rsa.RSACore.crtCrypt(byte[], RSAPrivateCrtKey) 491 7.262
      sun.security.rsa.RSACore.rsa(byte[], RSAPrivateKey) 491 7.262
      com.sun.crypto.provider.RSACipher.doFinal() 473 6.996
      com.sun.crypto.provider.RSACipher.engineUnwrap(byte[], String, int) 459 6.789
      javax.crypto.Cipher.unwrap(byte[], String, int) 459 6.789
      sun.security.ssl.RSAClientKeyExchange.<init>(ProtocolVersion, ProtocolVersion, SecureRandom, HandshakeInStream, int, PrivateKey) 459 6.789
      sun.security.ssl.ServerHandshaker.processMessage(byte, int) 459 6.789
      sun.security.ssl.Handshaker.processLoop() 459 6.789
      sun.security.ssl.Handshaker$1.run() 459 6.789
      sun.security.ssl.Handshaker$1.run() 459 6.789
      java.security.AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext) 459 6.789
      sun.security.ssl.Handshaker$DelegatedTask.run() 459 6.789
      weblogic.socket.JSSEFilterImpl.doTasks() 459 6.789
      weblogic.socket.JSSEFilterImpl.doHandshake(ByteBuffer, MuxableSocket, boolean) 459 6.789

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                coffeys Sean Coffey
                Reporter:
                shadowbug Shadow Bug
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: