Zoltan - Solr is not preventing you from giving your JVM 2GB heap, something else is. If you paste the error we may be able to help.
Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ ----- Original Message ---- > From: Zoltán Altfatter <altfatt...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Mon, May 2, 2011 4:55:06 AM > Subject: OutOfMemoryError with DIH loading 140.000 documents > > Hi, > > I receive OutOfMemoryError with Solr 3.1 when loading around 140.000 > document with DIH. > I have set the -Xmx to 1536M. Weird that I cannot give more heap memory. > With -Xmx2G the process doesn't start. > > Do you know why can't I set 2G -Xmx to Solr 3.1? > > With Solr 4.0 trunk it I don't receive OutOfMemoryError issue, although I > can set the -Xmx to 2G. > > Thank you. > > Cheers, > Zoltan >