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

Joel Richard commented on OAK-3153:
-----------------------------------

[~tmueller], we could also just use an AtomicInteger which is incremented when 
a session is created and decremented when it is closed. To reduce the 
volatility, only long living sessions could be counted.

> Make it possible to disable recording of stack trace in SessionStats
> --------------------------------------------------------------------
>
>                 Key: OAK-3153
>                 URL: https://issues.apache.org/jira/browse/OAK-3153
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.3.3
>            Reporter: Joel Richard
>              Labels: performance
>
> For the rendering of some pages we have to create a lot of sessions. Around 
> 9% of the rendering time is spent inside of RepositoryImpl.login. Half of 
> this time is spent creating the exception in SessionStats. Therefore, it 
> would be useful if the recording of the exception could be disabled to 
> improve the performance.



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

Reply via email to