lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-1566) Large Lucene index can hit false OOM due to Sun JRE issue
Date Mon, 06 Jul 2009 15:22:15 GMT


Michael McCandless commented on LUCENE-1566:

Could we move the fix down into SimpleFSDir.FSIndexInput?  We are only hitting it with norms
today, but in the future if we read other large things from the index (eg with column-stride
fields) we'd like the workaround to apply there as well.

Can we turn it on by default, only on 32 bit JREs?

I think you can read directly into the norms byte[], instead of allocating a temp buffer,
as long as you read in smaller chunks.  From the email thread it looked like smaller was up
to ~100 MB, which I think is fine to simply do by default.  Maybe offer a setter (instead
of static property) to turn this workaround on/off in SimpleFSDir.

> Large Lucene index can hit false OOM due to Sun JRE issue
> ---------------------------------------------------------
>                 Key: LUCENE-1566
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.4.1
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9
>         Attachments: LUCENE-1566.patch, LUCENE-1566.patch
> This is not a Lucene issue, but I want to open this so future google
> diggers can more easily find it.
> There's this nasty bug in Sun's JRE:
> The gist seems to be, if you try to read a large (eg 200 MB) number of
> bytes during a single call, you can incorrectly
> hit OOM.  Lucene does this, with norms, since we read in one byte per
> doc per field with norms, as a contiguous array of length maxDoc().
> The workaround was a custom patch to do large file reads as several
> smaller reads.
> Background here:

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message