lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandyg <>
Subject java.lang.OutOfMemoryError: Java heap space when sorting the fields
Date Tue, 18 Mar 2008 13:23:22 GMT

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 =,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>
View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message