OutOfMemoryError when indexing "many" documents
1 posts in topic
Flat View  Flat View

Posted By:   Stian_Sigmundstad
Posted On:   Wednesday, September 25, 2002 12:39 AM

When trying to index about 2000 html documents, I get a "java.lang.OutOfMemoryError" error and the indexing stops. I tried to increase the amount of memory available for the javaVM on my server (I set max to 500MB), and then indexing worked fine. But the memory usage on my application server increased from around a 100 MB to 450 MB, where it stabilized until it was done.

Has anyone eperienced a similar problem?
How can I get the memory usage lower?

Re: OutOfMemoryError when indexing "many" documents

Posted By:   Otis_Gospodnetic  
Posted On:   Wednesday, September 25, 2002 05:35 PM

The error could be caused by programming errors that are in the code that uses Lucene, not in Lucene itself.
It is hard to tell without seeing the code.
You can probably figure out what consumes so much memory by running your application under a debugger and/or a profiler.
About | Sitemap | Contact