lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <>
Subject [jira] [Updated] (LUCENE-4451) Memory leak per unique thread caused by RandomizedContext.contexts static map
Date Mon, 01 Oct 2012 18:35:08 GMT


Dawid Weiss updated LUCENE-4451:

    Attachment: LUCENE-4451.patch

Patch against the trunk updating rr to 2.0.2. I tested very quickly and at least one seed
 that was failing with an OOM now passes. I commented out GC-helpers Mike added to make it
even harder (and un-ignored TestDirectPostingsFormat).

Mike could you take a look and maybe beast it a bit? It's getting late on my side -- feel
free to commit if everything is all right.
> Memory leak per unique thread caused by RandomizedContext.contexts static map
> -----------------------------------------------------------------------------
>                 Key: LUCENE-4451
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>            Assignee: Dawid Weiss
>         Attachments: LUCENE-4451.patch
> In digging on the hard-to-understand OOMEs with
> TestDirectPostingsFormat ... I found (thank you YourKit) that
> RandomizedContext (in randomizedtesting JAR) seems to be holding onto
> all threads created by the test.  The test does create many very short
> lived threads (testing the thread safety of the postings format), in
> BasePostingsFormatTestCase.testTerms), and somehow these seem to tie
> up a lot (~100 MB) of RAM in RandomizedContext.contexts static map.
> For now I've disabled all thread testing (committed {{false &&}} inside
> {{BPFTC.testTerms}}), but hopefully we can fix the root cause here, eg
> when a thread exits can we clear it from that map?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message