You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jae Joo <ja...@gmail.com> on 2007/07/27 16:39:06 UTC
Java Heap Space
I am new in Solr and try to use Jitty and example with 13 million records.
During running it, I have the error -
*HTTP ERROR: 500*
Java heap space
java.lang.OutOfMemoryError: Java heap space
Any recommendation? We have a million transactions, so would it be better to
use Tomcat?
Thanks,
Jae
Re: Java Heap Space
Posted by Thierry Collogne <th...@gmail.com>.
Hello,
You need to start your jetty or tomcat server with higher vm memory
settings.
On this page you can find some explanation
http://www.caucho.com/resin-3.0/performance/jvm-tuning.xtp
The 2 parameters that are important are -Xms and -Xmx.
So instead of starting jetty with
java -jar start.jar
you should use something like
java -Xmx512M -Xms512M -jar start.jar
This will start the server with an initital memory of 512 MB and a maximum
of 512 MB. If that isn't enough, you can use higher values.
Hope this helps,
Thierry Collogne
On 27/07/07, Jae Joo <ja...@gmail.com> wrote:
>
> I am new in Solr and try to use Jitty and example with 13 million records.
> During running it, I have the error -
> *HTTP ERROR: 500*
>
> Java heap space
>
>
>
> java.lang.OutOfMemoryError: Java heap space
>
>
> Any recommendation? We have a million transactions, so would it be better
> to
> use Tomcat?
>
> Thanks,
>
> Jae
>
Re: Java Heap Space
Posted by Chris Hostetter <ho...@fucit.org>.
: I am new in Solr and try to use Jitty and example with 13 million records.
: During running it, I have the error -
: java.lang.OutOfMemoryError: Java heap space
: Any recommendation? We have a million transactions, so would it be better to
: use Tomcat?
millions of records takes up memory. what is your heap size curently set
to? did you try increasing it?
you should also consider searching the mailing list archives for "heap
tuning" or "memory" or even "OutOfMemoryError"
-Hoss