lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <>
Subject [jira] Commented: (SOLR-1150) OutofMemoryError on enabling highlighting
Date Thu, 21 May 2009 11:55:46 GMT


Mark Miller commented on SOLR-1150:

Patch looks right - my only concern would be a performance impact, but that does look unlikely.
There is likely to be some benefit in loading them all at once, but I can't imagine one at
a time is much of a loss.

> OutofMemoryError on enabling highlighting
> -----------------------------------------
>                 Key: SOLR-1150
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: highlighter
>    Affects Versions: 1.4
>            Reporter: Siddharth Gargate
>             Fix For: 1.4
>         Attachments: SOLR-1150.patch
> Please refer to following mail thread
> I am testing with 2MB document size and just 500 documents. Indexing is working fine
even with 128MB heap size. But on searching Solr throws OOM error. This issue is observed
only when we enable highlighting. While indexing I am storing 1 MB text. While searching Solr
reads all the 500 documents in the memory. It also reads the complete 1 MB stored field in
the memory for all 500 documents. Due to this 500 docs * 1 MB * 2 (2 bytes per char) = 1000
MB memory is required for searching.
> This memory usage can be reduced by reading one document at a time.

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

View raw message