[ 
https://issues.apache.org/jira/browse/OAK-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395668#comment-15395668
 ] 

Marcel Reutegger commented on OAK-4543:
---------------------------------------

I think we should differentiate identification of expensive listeners and 
analysis of why they are expensive.

Identification should be as simple as possible and be exposed via JMX. For 
analysis of why they are expensive, log messages can be useful in addition to 
JMX information.

I would like to focus on the identification first and then add more logging if 
required. As mentioned by Vikas, there is already a lot of information 
available (consumer/producer time series), which gives an indication whether 
the problem is on the listener or the repository side.

The closest to a cost indicator we currently have is probably 
{{EventListenerMBean.getRatioOfTimeSpentProcessingEvents()}}. The 
implementation returns a ratio based on the start time of the system and the 
time spent in onEvent(). Would it make sense to 

In addition we could add a method that returns the consumer/producer ratio as a 
moving average, e.g. over the last minute. I'll create a patch for this.

> Add PerfLogger around observation event generation and event consumption by 
> observer
> ------------------------------------------------------------------------------------
>
>                 Key: OAK-4543
>                 URL: https://issues.apache.org/jira/browse/OAK-4543
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Vikas Saurabh
>            Assignee: Vikas Saurabh
>            Priority: Minor
>              Labels: candidate_oak_1_0, candidate_oak_1_2, candidate_oak_1_4, 
> monitoring, observation, performance
>
> I'm not sure if it's possible in the current scheme of things 
> (implementation), but it'd useful to be able to easily differentiate between 
> slow diff calculation or slow observer as a reason to see why observation 
> queue might fill up.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to