I tried hl.maxAnalyzedChars=500 but still the same issue. I get OOM for row size 20 only.
-----Original Message----- From: Otis Gospodnetic [mailto:otis_gospodne...@yahoo.com] Sent: Thursday, April 16, 2009 9:56 PM To: solr-user@lucene.apache.org Subject: Re: OutofMemory on Highlightling Hi, Have you tried: http://wiki.apache.org/solr/HighlightingParameters#head-2ca22f63cb8d1b2b a3ff0cfc05e85b94898c59cf Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: "Gargate, Siddharth" <sgarg...@ptc.com> > To: solr-user@lucene.apache.org > Sent: Thursday, April 16, 2009 6:33:46 AM > Subject: OutofMemory on Highlightling > > Hi, > > I am analyzing the memory usage for my Solr setup. I am > testing with 500 text documents of 2 MB each. > > I have defined a field for displaying the teasers and storing 1 MB of > text in it. I am testing with just 128 MB maxHeap(I know I should be > increasing it but just testing the worst case scenario). > > If I search for all 500 documents with row size as 500 and highlighting > disabled, it works fine. But if I enable highlighting I get > OutofMemoryError. > > Looks like stored field for all the matched results are read into the > memory. How to avoid this memory consumption? > > > > Thanks, > > Siddharth