• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 5.1.1
    • 4.3.2
    • None
    • Linux 32 bit, Sun JDK 1.6.0_35, 'atlas-debug' Confluence 4.3.2, Confluence data version 4.2, amps maven plugin 3.11

      Since Confluence 4.3 I'm getting random deadlocks in the HTTP worker threads.

      More specifically: Sometimes after starting Confluence with atlas-debug I can't load a single page as the respective thread is blocked. If I Ctrl-C the process and restart Confluence it sometimes works correctly.

      I suspect the Active Objects Plugin that is shipped with Confluence 4.3 causing this. Blocked threads are locked in this method (excerpt of the attached full thread dump):

      "http-1990-21" daemon prio=10 tid=0x11e34800 nid=0xa63 waiting for monitor entry [0x1133b000]
         java.lang.Thread.State: BLOCKED (on object monitor)
      	at com.atlassian.activeobjects.osgi.DelegatingActiveObjects$MemoizingSupplier.get(DelegatingActiveObjects.java:142)
      	- waiting to lock <0x3a2323a8> (a com.atlassian.activeobjects.osgi.DelegatingActiveObjects$MemoizingSupplier)
      	at com.atlassian.activeobjects.osgi.DelegatingActiveObjects.executeInTransaction(DelegatingActiveObjects.java:121)
      

      Here's what I did:

      1. Started Confluence 4.3.2 using atlas-debug from a dummy plugin project with no modules.
      2. Tried to open the dashboard, was redirected to the login page.
      3. Logged in as admin/admin
      4. Was redirected to the dashboard (which seemed to load fine, maybe cached)
      5. Tried to open a space -> BLOCK, browser keeps loading page forever
      6. Pressed F5 to reload the dashboard -> BLOCK
      7. Pressed F5 again to reload the dashboard -> BLOCK
      8. and so on

      In other cases the blocking also was triggered when initially loading the dashboard without being redirected to the login page before (I had a cookie that logged me in).

      In the thread dump you'll see a lot of HTTP worker threads. Confluence created new ones since I pressed F5 quite some time to get more threads blocked in the same position.

            [CONFSERVER-27128] Random deadlocks in HTTP threads since Confluence 4.3

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2890726 ] New: CONFSERVER Bug Workflow v4 [ 2982965 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2775028 ] New: JAC Bug Workflow v3 [ 2890726 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2736001 ] New: JAC Bug Workflow v2 [ 2775028 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2388503 ] New: JAC Bug Workflow [ 2736001 ]
            Alex Yakovlev (Inactive) made changes -
            Labels Original: active-objects affects-server bugfix loyalty team-ants warranty New: active-objects affects-server loyalty team-ants warranty
            Alex Yakovlev (Inactive) made changes -
            Labels Original: active-objects affects-server bugfix team-ants warranty New: active-objects affects-server bugfix loyalty team-ants warranty
            Jing Hwa Cheok (Inactive) made changes -
            Assignee New: Olli Nevalainen [ onevalainen ]
            Jing Hwa Cheok (Inactive) made changes -
            Assignee Original: Jing Hwa Cheok [ jcheok ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2265139 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2388503 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2208644 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2265139 ]

              onevalainen Olli Nevalainen
              8a6996ac4f20 Jens Rutschmann [K15t]
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: