Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2755

Consolidated JMX view of all EventListener related statistics

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Oak Observation support exposes a EventListenerMBean [1] which provide quite a bit of details around registered observation listeners. However in a typical application there would be multiple listeners registered. To simplify monitoring it would be helpful to have a consolidated view of all listeners related statistics.

      Further the stats can also include some more details which are Oak specific

      • Subtree paths to which the listener listens to - By default JCR Api allows single path however Oak allows a listener to register to multiple paths
      • If listener is enabled to listen to cluster local and cluster external changes
      • Size of queue in BackgroundObserver
      • Distribution of change types present in the queue - Local, External etc

      [1] https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jmx/EventListenerMBean.java

      Attachments

        1. consolidated-listener-stats.png
          92 kB
          Chetan Mehrotra
        2. OAK-2755.patch
          22 kB
          Chetan Mehrotra
        3. OAK-2755-2.patch
          27 kB
          Chetan Mehrotra
        4. consolidated-listener-stats-2.png
          103 kB
          Chetan Mehrotra
        5. OAK-2755-3.patch
          34 kB
          Chetan Mehrotra

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mreutegg Marcel Reutegger
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment