Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Java heap size on Solr

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.24k
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: