> -----Original Message-----
> From: Rob Outar [mailto:[EMAIL PROTECTED]] 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to