You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by newsam <ne...@zju.edu.cn> on 2011/03/21 11:36:20 UTC

Memory leak for Multiple fields faceted searching

Hi,

Here is my environment: 32bits windows server 2008 (4cpu and 12G RAM), 320million docs, index size 12G.

When we use query=*:* and 10 fields for faceted searching, it works. However, 15 feilds or more faceted searching caused the following exception:

java.lang.OutOfMemoryError: Java heap space at org.apache.lucene.search.FieldCacheImpl$StringIndexCache.createValue(FieldCacheImpl.java:704) 

Any suggestions are welcomed!

THx


Re: Memory leak for Multiple fields faceted searching

Posted by Darx Oman <da...@gmail.com>.
How much memory you specify for java heap?
-Xmx...

Re: Memory leak for Multiple fields faceted searching

Posted by Erick Erickson <er...@gmail.com>.
Memory consumption grows as the number of unique terms grows. So in
addition to Darx's question, how many unique terms are in all the
fields you're faceting on?

Best
Erick

2011/3/21 newsam <ne...@zju.edu.cn>:
> Hi,
>
> Here is my environment: 32bits windows server 2008 (4cpu and 12G RAM), 320million docs, index size 12G.
>
> When we use query=*:* and 10 fields for faceted searching, it works. However, 15 feilds or more faceted searching caused the following exception:
>
> java.lang.OutOfMemoryError: Java heap space at org.apache.lucene.search.FieldCacheImpl$StringIndexCache.createValue(FieldCacheImpl.java:704)
>
> Any suggestions are welcomed!
>
> THx
>
>