lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Trcek <>
Subject Re: Memory issues
Date Mon, 05 Sep 2011 08:58:29 GMT
On Saturday 03 September 2011 20:09:54 Michael Bell wrote:
> 2011-08-30 13:01:31,489 [TP-Processor8] ERROR
> com.gwava.utils.ServerErrorHandlerStrategy - reportError:
> nastybadthing ::
> com.gwava.indexing.lucene.internal.LuceneSearchController.performSear
>chOperation:229 :: EXCEPTION : java.lang.OutOfMemoryError: Requested
> array size exceeds VM limit java.lang.OutOfMemoryError: Requested
> array size exceeds VM limit at
> at
> ...
> Looking at the sort class, the api docs appear to say it would create
> an element of 1.2 billion items (4*300m). Is this correct? Is the
> issue going beyond signed int32 limits of an array ( 2 billion items)
> or is it really a memory issue? How best to diagnose?

Call your java process this way
   java -XX:HeapDumpPath=. -XX:+HeapDumpOnOutOfMemoryError
and drag'n'drop the resulting java_pid*.hprof into eclipse.
You will get an outline by class for the number and size of allocated 

Note that you need somewhat more main memory for the post mortem 
diagnosis, so you may want to start your java process with less than 24 


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

View raw message