[
https://issues.apache.org/jira/browse/OAK-1964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14057506#comment-14057506
]
Michael Dürig commented on OAK-1964:
------------------------------------
bq. We could make the call conditional on some log level. E.g. only trace the
stack if debug log is enabled.
+1
> Performance degradation due to SessionDelegate.WarningLock
> ----------------------------------------------------------
>
> Key: OAK-1964
> URL: https://issues.apache.org/jira/browse/OAK-1964
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: jcr
> Affects Versions: 1.0.2, 1.1
> Reporter: Thomas Mueller
>
> In OAK-1703, we have added a new class WarningLock that internally uses an
> Exception to remember the stack trace. This seems to be used for every
> SessionDelegate object. With Java 6 and older, this is very problematic
> because it will cause "java.lang.Throwable.fillInStackTrace(Native Method)"
> to be called for almost every call to any of the Oak JCR methods, and
> "fillInStackTrace(Native Method)" is known to be be very slow. Java 7, I
> believe, will at some point give up and not fill in the stack trace any more.
> But with Java 6 and older, this is a big problem.
--
This message was sent by Atlassian JIRA
(v6.2#6252)