I was working on a huge data, around 10gb, which I needed to import on solr. So I split the data in 1gb files, then I imported the data in solr using the post method.
I ended up getting error:
SEVERE: java.lang.OutOfMemoryError: Java heap space.
Solution:
To increase heap size in solr, go to solr-5.4.1/bin , open file solr.in.sh and uncomment
SOLR_JAVA_MEM="-Xms512m -Xmx512m"
Increase the size of head as required. For me this worked fine.
SOLR_JAVA_MEM="-Xms4096m -Xmx4096m"
You can also increase Solr heap by at the top
SOLR_HEAP="4096m"
0 Comment(s)