You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2015/11/04 13:23:27 UTC

[jira] [Commented] (OAK-3585) Reduce memory usage of SegmentParserTest

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

Marcel Reutegger commented on OAK-3585:
---------------------------------------

It seems this is caused by Mockito, which tracks all method invocations on the mocked objects. Invocations are tracked with a ThreadLocal and not released immediately.

More recent versions of Mockito allow you to disable tracking of method invocations. AFAICS this is not required for any of the tests in SegmentParserTest.

> Reduce memory usage of SegmentParserTest
> ----------------------------------------
>
>                 Key: OAK-3585
>                 URL: https://issues.apache.org/jira/browse/OAK-3585
>             Project: Jackrabbit Oak
>          Issue Type: Test
>          Components: core, segmentmk
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>            Priority: Minor
>
> Some of the tests in SegmentParserTest use quite a lot of memory, which is not immediately released after the test. Every now and then this causes the subsequent test to fail with an OOME. See e.g.: https://travis-ci.org/apache/jackrabbit-oak/builds/89176732



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