• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 7.4.10, 7.12.1
    • 7.0.1, 7.1.0, 7.2.2, 7.4.0, 7.5.0, 7.6.0
    • Server - Platform

      Issue Summary

      Enabling profiling has no effect on logging in Confluence 7.0.1.

      Environment

      Confluence 7.0.1

      Steps to Reproduce

      1. Enable profiling via the UI:  Confluence Administration >> General Configuration >> Logging and profiling >> Enable profiling
      2. Check atlassian-confluence.log

      Expected Results

      Additional profiling logging should be added to atlassian-confluence.log for each active thread. For example:

      2019-09-12 16:09:05,667 DEBUG [http-nio-26158-exec-6] [atlassian.util.profiling.UtilTimerStack] log [9ms] - /conf6158/admin/changeprofiling.action
        [1ms] - UserAccessor.getExistingUserByKey()
        [1ms] - PermissionManager.hasPermission()
          [0ms] - UserAccessor.isDeactivated()
            [0ms] - CrowdService.getUser()
              [0ms] - ApplicationDAO.findByName()
              [0ms] - UserDao.findByName()
          [1ms] - CrowdService.isUserMemberOfGroup()
            [0ms] - ApplicationDAO.findByName()
            [0ms] - MembershipDao.isUserDirectMember()
        [0ms] - UserAccessor.getUserByName()
          [0ms] - CrowdService.getUser()
            [0ms] - ApplicationDAO.findByName()
            [0ms] - UserDao.findByName()
        [0ms] - PermissionManager.isSystemAdministrator()
        [0ms] - UserAccessor.getPropertySet()
        [2ms] - XW Interceptor: Before defaultStack: /admin/changeprofiling.action (ConfigureLog4jAction.changeProfiling())
          [0ms] - UserAccessor.exists()
            [0ms] - CrowdService.getUser()
              [0ms] - ApplicationDAO.findByName()
              [0ms] - UserDao.findByName()
          [0ms] - UserAccessor.getPropertySet()
          [0ms] - SpaceAwareInterceptor.intercept()
          [1ms] - PageAwareInterceptor.intercept()
            [0ms] - CommentAwareInterceptor.intercept()
            [0ms] - UserAwareInterceptor.intercept()
            [0ms] - BootstrapAwareInterceptor.intercept()
            [0ms] - PermissionManager.hasPermission()
            [0ms] - XW Interceptor: After defaultStack: /admin/changeprofiling.action (ConfigureLog4jAction.changeProfiling())
              [0ms] - XW Interceptor: After validatingStack: /admin/changeprofiling.action (ConfigureLog4jAction.changeProfiling()) 

      Actual Results

      No expected profiling output is generated.

       

      Workaround

      • Navigate to Confluence Administration >> General Configuration >> Logging and profiling
        • Click Enable Profiling; and
        • Manually add com.atlassian.util.profiling.Timers as DEBUG logging
        • Manually add com.atlassian.util.profiling.UtilTimerStack as DEBUG logging

            [CONFSERVER-58861] Turning on profiling has no effect on generated logging

            A fix for this issue is available to Server and Data Center customers in Confluence 7.4.10
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Jiri Hronik added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.4.10 Upgrade now or check out the Release Notes to see what other issues are resolved.

            A fix for this issue is available to Server and Data Center customers in Confluence 7.12.1
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Jiri Hronik added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.12.1 Upgrade now or check out the Release Notes to see what other issues are resolved.

            Issue persists in version 7.4

            Ferenc Szecsi added a comment - Issue persists in version 7.4

            We are also seeing this issue on 7.2.2, the workaround worked though. 

            Jeremy Sebring added a comment - We are also seeing this issue on 7.2.2, the workaround worked though. 

            I have updated the docs to call out this issue, and provide steps for the workaround.

            Rachel Robins added a comment - I have updated the docs to call out this issue, and provide steps for the workaround.

              sleatherland@atlassian.com Simeon Leatherland
              mninnes@atlassian.com Malcolm Ninnes
              Affected customers:
              11 This affects my team
              Watchers:
              18 Start watching this issue

                Created:
                Updated:
                Resolved: