Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1926

stuck org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket

    XMLWordPrintableJSON

    Details

      Description

      Hi,
      We meet this problem in our application. We are using different libs depends from httpclient: azure, jclouds, backblaze, etc, encryption for files we archiving. It is used everywhere. And after 3 days of usage application stack on getService().

      I have a JFR Snapshot in such condition. If you go to Contention in JFR snapshot you will see java.security.Provider.getService() is a bottleneck for application. 

      It is already opened bug in Oracle database, but I'm not sure it will be fixed any time. 

      https://bugs.openjdk.java.net/browse/JDK-8201288 

      Most of stack traces start from 

      Stack Trace Count Duration
       sun.security.ssl.SSLSocketImpl.startHandshake() 1,055 4,767,153,771,586
       org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(Socket, String, int, HttpContext) 792 3,716,363,189,042

      Is it possible somehow share Socket, so we don't need handshake each time. 

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              valenpo Valentin Popov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: