Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12180

Code search intermittently stops working with Java 11 JRE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Answered
    • Icon: High High
    • None
    • 6.0.0
    • Webhooks

      Solution

      This problem is caused by a bug in the Java runtime: JDK-8214418 HttpClient falls in running with 100% cpu usage after an error signalled on channel (Backported as JDK-8241054)

      The fix has been verified to be available in AdoptOpenJDK 11.0.8 - https://github.com/AdoptOpenJDK/openjdk-jdk11u/commit/8d1b63a4db2c6348a97b3cf45bd4d2caa7cad6b5

       

      Code search is likely impacted by the same problem as is described here: https://jira.atlassian.com/browse/BSERV-11796
      In fixing BSERV-11796, all that was done was to disable TLSv1.3 in the HTTP Client, however that client instance is specific to the repository importer.

      The above is suspected to relate to the following JDK bug:

      • JDK-8214418 HttpClient falls in running with 100% cpu usage after an error signalled on channel

      Workaround

      1) Run Bitbucket Server with Java 8
      2) Set -Djdk.tls.disabledAlgorithms=TLSv1.3 in the JVM parameters. Please note that this will disable all outbound TLS connections that use TLSv1.3 for all protocols, not just HTTPS. (AKA LDAPS and newer clients may refuse to connect on older TLS versions)

              behumphreys Ben Humphreys
              ephillips@atlassian.com Edward
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: