lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject OutOfMemoryError coming from TermVectorsReader
Date Mon, 19 Sep 2011 05:34:18 GMT

I am new to solr. I an trying to index text documents of large size. On searching from indexed
documents I am getting following OutOfMemoryError. Please help me in resolving this issue.

The field which stores file content is configured in schema.xml as below:

<field name="Content" type="text_token" indexed="true" stored="true" omitNorms="true" termVectors="true"
termPositions="true" termOffsets="true" />

and Highlighting is configured as below:

<str name="hl">on</str>

<str name="hl.fl">${all.fields.list}</str>

<str name="f.Content.hl.fragsize">500</str>

<str name="f.Content.hl.useFastVectorHighlighter">true</str>

2011-09-16 09:38:45.763 [http-thread-pool-9091(5)] ERROR - java.lang.OutOfMemoryError: Java
heap space
        at org.apache.lucene.index.TermVectorsReader.readTermVector(
        at org.apache.lucene.index.TermVectorsReader.get(
        at org.apache.lucene.index.TermVectorsReader.get(
        at org.apache.lucene.index.SegmentReader.getTermFreqVector(
        at org.apache.lucene.index.DirectoryReader.getTermFreqVector(
        at org.apache.solr.highlight.DefaultSolrHighlighter.doHighlightingByFastVectorHighlighter(
        at org.apache.solr.highlight.DefaultSolrHighlighter.doHighlighting(
        at org.apache.solr.handler.component.HighlightComponent.process(
        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(
        at org.apache.solr.core.SolrCore.execute(
        at org.apache.solr.servlet.SolrDispatchFilter.execute(
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
        at org.apache.catalina.core.StandardWrapperValve.invoke(
        at org.apache.catalina.core.StandardContextValve.invoke(
        at org.apache.catalina.core.StandardPipeline.doInvoke(
        at org.apache.catalina.core.StandardPipeline.invoke(
        at com.sun.enterprise.web.WebPipeline.invoke(
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(
        at org.apache.catalina.core.StandardHostValve.invoke(
        at org.apache.catalina.connector.CoyoteAdapter.doService(
        at org.apache.catalina.connector.CoyoteAdapter.service(
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(
        at com.sun.grizzly.http.ProcessorTask.doProcess(
        at com.sun.grizzly.http.ProcessorTask.process(

Thanks & Regards
Anand Nigam

The Royal Bank of Scotland plc. Registered in Scotland No 90312. 
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority. The 
Royal Bank of Scotland N.V. is authorised and regulated by the 
De Nederlandsche Bank and has its seat at Amsterdam, the 
Netherlands, and is registered in the Commercial Register under 
number 33002587. Registered Office: Gustav Mahlerlaan 350, 
Amsterdam, The Netherlands. The Royal Bank of Scotland N.V. and 
The Royal Bank of Scotland plc are authorised to act as agent for each 
other in certain jurisdictions. 
This e-mail message is confidential and for use by the addressee only. 
If the message is received by anyone other than the addressee, please 
return the message to the sender by replying to it and then delete the 
message from your computer. Internet e-mails are not necessarily 
secure. The Royal Bank of Scotland plc and The Royal Bank of Scotland 
N.V. including its affiliates ("RBS group") does not accept responsibility 
for changes made to this message after it was sent. For the protection
of RBS group and its clients and customers, and in compliance with
regulatory requirements, the contents of both incoming and outgoing
e-mail communications, which could include proprietary information and
Non-Public Personal Information, may be read by authorised persons
within RBS group other than the intended recipient(s). 

Whilst all reasonable care has been taken to avoid the transmission of 
viruses, it is the responsibility of the recipient to ensure that the onward 
transmission, opening or use of this message and any attachments will 
not adversely affect its systems or data. No responsibility is accepted 
by the RBS group in this regard and the recipient should carry out such 
virus and other checks as it considers appropriate. 

Visit our website at 


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message