Pages with hundreds of watchers can cause performance churn

XMLWordPrintable

      This is for the internal bug CONFDEV-15413 since I noticed there was no public one tracking this issue.

      Summary

      A page with many watchers will thrash a system's performance by processing/reprocessing mail content for the hundreds of watchers:

      "http-8090-137" daemon prio=10 tid=0x00007fa3bb7c2800 nid=0xf5fd runnable [0x0000000045914000]
         java.lang.Thread.State: RUNNABLE
              at java.util.regex.Pattern$BmpCharProperty.match(Unknown Source)
              at java.util.regex.Pattern$Curly.match0(Unknown Source)
              at java.util.regex.Pattern$Curly.match(Unknown Source)
              at java.util.regex.Pattern$Start.match(Unknown Source)
              at java.util.regex.Matcher.search(Unknown Source)
              at java.util.regex.Matcher.find(Unknown Source)
              at java.util.regex.Matcher.replaceAll(Unknown Source)
              at java.lang.String.replaceAll(Unknown Source)
              at com.atlassian.botocss.Botocss.inject(Botocss.java:85)
              at com.atlassian.botocss.Botocss.inject(Botocss.java:43)
      

            Assignee:
            Steve Haffenden (Inactive)
            Reporter:
            David Yu
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: