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 uwe72 <uw...@exxcellent.de> on 2012/12/06 23:27:13 UTC

OutOfMemoryError | While Faceting Query

Hi there,

since i use a lot sorting and faceting i am getting very often an
OutOfMemoryError.

I have arround 
6 million documents, 
index size arround 18GB and using 
tomcat with 1.8 GB max heap size.

What can i do? What heap size is recommended in our case?

Can i do other things in order to prevent OutOfMemoryError while using a lot
of facets?

Urgent, please help.

Thanks,
Uwe



--
View this message in context: http://lucene.472066.n3.nabble.com/OutOfMemoryError-While-Faceting-Query-tp4024947.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: OutOfMemoryError | While Faceting Query

Posted by uwe72 <uw...@exxcellent.de>.
You mean this:

stats: 	entries_count : 24
entry#0 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_2f3.frq")'=>'WiringDiagramSheetImpl.pageNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#32159051
entry#1 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_2f3.frq")'=>'BandagierungImpl.sachnummer',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#2383166
entry#2 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_2f3.frq")'=>'ModuleImpl.partNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#23443846
entry#3 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_2f3.frq")'=>'SingleCoreWireImpl.wireNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#24586189
entry#4 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_2f3.frq")'=>'EinzelleitungImpl.bezeichnung',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#30808319
entry#5 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_2f3.frq")'=>'WiringDiagramSheetImpl.partNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#16987461
entry#6 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_3kj.frq")'=>'WiringDiagramSheetImpl.pageNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#27154168
entry#7 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_3kj.frq")'=>'BandagierungImpl.sachnummer',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#6277146
entry#8 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_3kj.frq")'=>'ModuleImpl.partNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#4860238
entry#9 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_3kj.frq")'=>'SingleCoreWireImpl.wireNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#14545746
entry#10 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_3kj.frq")'=>'EinzelleitungImpl.bezeichnung',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#26324419
entry#11 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_3kj.frq")'=>'WiringDiagramSheetImpl.partNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#19329933
entry#12 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_192.frq")'=>'WiringDiagramSheetImpl.pageNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#4187113
entry#13 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_192.frq")'=>'BandagierungImpl.sachnummer',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#9180601
entry#14 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_192.frq")'=>'ModuleImpl.partNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#15091934
entry#15 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_192.frq")'=>'SingleCoreWireImpl.wireNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#12186256
entry#16 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_192.frq")'=>'EinzelleitungImpl.bezeichnung',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#31719847
entry#17 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_192.frq")'=>'WiringDiagramSheetImpl.partNumber',class
org.apache.lucene.search.FieldCache$StringIndex,null=>org.apache.lucene.search.FieldCache$StringIndex#2653949
entry#18 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_2f3.frq")'=>'WiringDiagramSheetImpl.versionAsDate',long,org.apache.lucene.search.FieldCache.NUMERIC_UTILS_LONG_PARSER=>[J#11082048
entry#19 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_2f3.frq")'=>'ModuleImpl.versionAsDate',long,org.apache.lucene.search.FieldCache.NUMERIC_UTILS_LONG_PARSER=>[J#28896878
entry#20 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_3kj.frq")'=>'WiringDiagramSheetImpl.versionAsDate',long,org.apache.lucene.search.FieldCache.NUMERIC_UTILS_LONG_PARSER=>[J#2986832
entry#21 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_3kj.frq")'=>'ModuleImpl.versionAsDate',long,org.apache.lucene.search.FieldCache.NUMERIC_UTILS_LONG_PARSER=>[J#2255175
entry#22 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_192.frq")'=>'WiringDiagramSheetImpl.versionAsDate',long,org.apache.lucene.search.FieldCache.NUMERIC_UTILS_LONG_PARSER=>[J#19778817
entry#23 :
'NIOFSIndexInput(path="/home/connect/ConnectPORTAL/preview/solr-home/data/index/_192.frq")'=>'ModuleImpl.versionAsDate',long,org.apache.lucene.search.FieldCache.NUMERIC_UTILS_LONG_PARSER=>[J#32378546
insanity_count : 0 



--
View this message in context: http://lucene.472066.n3.nabble.com/OutOfMemoryError-While-Faceting-Query-tp4024947p4025050.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: OutOfMemoryError | While Faceting Query

Posted by Bernd Fehling <be...@uni-bielefeld.de>.
Hi Uwe,

sorting should be well prepared.
First rough check is fieldCache. You can see it with SolrAdmin Stats.
The "insanity_count" there should be 0 (zero).
Only sort on fields which are prepared for sorting and make sense to be sorted.

Do only faceting on fields which make sense. I've seen systems with faceting
on "id", this is a no-go and doesn't make sense. The system pulls a lot of data
from the index into memory which can lead to OOME.

How to figure out what is killing your system?
There is no general rule but what you can do is:
- Start your test-system and make sure noone else is using it.
- Start a monitor for your JVM running SOLR (e.g. jvisualvm).
- use your search frontend and do searches, sorting, faceting of any combination
  possible and watch your heap memory if it has big jumps in memory heap.
- Analyze your search log files and look for searches which have a very high Qtime.
  Repeat the searches with high Qtime and see if you get "insanity_counts" or
  heap memory jumps in JVM.

Regards
Bernd


Am 06.12.2012 23:27, schrieb uwe72:
> Hi there,
> 
> since i use a lot sorting and faceting i am getting very often an
> OutOfMemoryError.
> 
> I have arround 
> 6 million documents, 
> index size arround 18GB and using 
> tomcat with 1.8 GB max heap size.
> 
> What can i do? What heap size is recommended in our case?
> 
> Can i do other things in order to prevent OutOfMemoryError while using a lot
> of facets?
> 
> Urgent, please help.
> 
> Thanks,
> Uwe
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/OutOfMemoryError-While-Faceting-Query-tp4024947.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>