lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gusenbauer Stefan <gusenba...@eduhi.at>
Subject Re: AW: Java heap space ...after index process
Date Wed, 26 Oct 2005 22:06:38 GMT
Patricio Galeas wrote:

>Hello Ben,
>It happens when one of the documents [4.95 MB] is indexed.
>I use the framework to index office documents from the book "Lucene In
>Action". I think the PDDocument objects are closed correctly.
>
>I'll look for more information about increasing the heap size.
>
>PDFBox version = 0.7.2
>
>Thank You for your help
>Patricio
>
>
>
>
>
>-----Urspr√ľngliche Nachricht-----
>Von: Ben Litchfield [mailto:ben@csh.rit.edu] 
>Gesendet: Mittwoch, 26. Oktober 2005 21:17
>An: java-user@lucene.apache.org
>Betreff: Re: Java heap space ...after index process
>
>Is this only after the entire indexing process is finished or do you 
>mean it happens on one of the documents you are extracting text from?
>
>Are you closing the PDDocument objects when you are done with them?
>
>What heap size are you using and have you tried increasing it?
>
>What version of PDFBox?
>
>Ben
>
>Patricio Galeas wrote:
>
>  
>
>>Hello All,
>>I try to index some PDF documents using PDFBox.
>>It works apparent normally, but when the index process ends, I get the
>>following message:
>>Exception in thread "main" java.lang.OutOfMemoryError: Java heap space 
>>
>>Do you have some idea?
>>Thanks
>>Patricio
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>>For additional commands, e-mail: java-user-help@lucene.apache.org
>> 
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>
>  
>
I've had such a problem to here are some possible solutions
1) implement a memory warning system
http://www.javaspecialists.co.za/archive/Issue092.html
2) resize the heap space with java -Xmx512M (for example)


---------------------------------------------------------------------
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