lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: OutOfMemoryError on addIndexes()
Date Thu, 11 Aug 2005 15:14:53 GMT
> > Is -Xmx case sensitive?  Should it be 1000m instead of 1000M?  Not
> > sure.
> > 
> 
> I'am starting with:
> java -Xms256M -Xmx512M -jar Suchmaschine.jar

And if you look at the size of your JVM, does it really use all 512 MB?
If it does not, maybe you can try this:

  java -Xms256m -Xmx512m -jar Suchmaschine.jar

If that doesn't help, it would be good to run this under a profiler and
see what eats your memory.

Otis
P.S.
I recall reading that using the same amount for Xms and Xmx results in
better performance.  Also, consider using -server option (Hotspot), if
you are using Sun's JVM.

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