jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (OAK-1964) Performance degradation due to SessionDelegate.WarningLock
Date Thu, 10 Jul 2014 15:56:04 GMT

     [ https://issues.apache.org/jira/browse/OAK-1964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Michael Dürig resolved OAK-1964.

       Resolution: Fixed
    Fix Version/s: 1.0.3

Fixed in trunk at http://svn.apache.org/r1609488
Fixed in 1.0 branch at http://svn.apache.org/r1609490

> 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
>            Assignee: Michael Dürig
>              Labels: Performance
>             Fix For: 1.1, 1.0.3
> 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

View raw message