lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Stor <mar...@frightanic.com>
Subject RE: OutOfMemoryException while Indexing an XML file
Date Fri, 14 Feb 2003 13:19:00 GMT
> -----Original Message-----
> From: Rob Outar [mailto:routar@ideorlando.org] 
> Sent: Freitag, 14. Februar 2003 14:13
> To: Lucene Users List
> Subject: OutOfMemoryException while Indexing an XML file
> 
> 
> Hi all,
> 
> 	I was using the sample code provided I believe by Doug 
> Cutting to index an
> XML file, the XML file was 2 megs (kinda large) but while 
> adding fields to
> the Document object I got an OutOfMemoryException exception.  
> I work with
> XML files a lot, I can easily parse that 2 meg file into a 
> DOM tree, I can't
> imagine a Lucene document being larger than a DOM Tree, 
> pasted below is the
> SAX handler.
[...code...]

Try adding -Xmx256M as an argument for java to increase the heap size in
memory.

Marcel


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


Mime
View raw message