lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandyg <gaddamsande...@gmail.com>
Subject Re: java.lang.OutOfMemoryError: Java heap space when sorting the fields
Date Wed, 19 Mar 2008 06:33:27 GMT

Thanks for the reply.
Actually am sorting on a specific field that is on keyword feild which is
unique
and i had 1 gb ram 

markrmiller wrote:
> 
> To sort on 13mil docs will take like at least 400 mb for the field 
> cache. Thats if you only sort on one field...it can grow fast if you 
> allow multi field sorting.
> 
> How much RAM are you giving your app?
> 
> sandyg wrote:
>> this is my search content
>>
>> QueryParser parser = new QueryParser("keyword",new StandardAnalyzer());
>> Query query = parser.parse("1");
>>
>> Sort sort = new Sort(new SortField(sortField));
>>           Hits       hits = searcher.search(query,sort);
>>
>> And i had huge data about 13 millions of records
>> i am not sure y its giving outof memory exception and
>> no exception when no sorting is done
>> plz some one help me yar
>>
>> and also if to increase heap space how to increase it programatically i
>> had
>> command prompt
>> java -Xms<initial heap size>  -Xmx<maximum heap size>
>> please.....
>>    
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/java.lang.OutOfMemoryError%3A-Java-heap-space-when-sorting-the-fields-tp16121128p16137836.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message