java.lang.OutOfMemoryError: Java heap space while Indexing big PDF files

  • snfpaper
    Participant
    # 8 months, 1 week ago

    Attempted uploading more PDF files to the index, and received the following error message: ‘

    (WPSOLR) Error while indexing this post type:
    Error on attached file 2009-02-18 (ID: 1040): Solr HTTP error: OK (500) <html> <head> <meta http-equiv=”Content-Type” content=”text/html;charset=utf-8″/> <title>Error 500 Server Error </title> </head> <body> <h2> HTTP ERROR 500</h2> <p>Problem accessing /solr/index/update/extract. Reason:

     Server Error

    </p><h3>Caused by:</h3>

    java.lang.OutOfMemoryError: Java heap space

    </body> </html>

    Is this a problem with our server, or with the SOLR index?

    Are there limits to the amount of memory the index is able to hold? If so, what are those limits? Our server’s upload limit is set around 700,000 KB, and these files are far smaller than that (largest are around 450,000 KB).

    wpsolr
    Keymaster
    # 8 months, 1 week ago

    PDF files of 450 MB?

    Your issue is apparently a lack of memory for Solr. You can try raising the Solr memory at start, as mentioned in https://stackoverflow.com/questions/45814405/solr-indexing-raises-error-while-posting-file

    snfpaper
    Participant
    # 8 months, 1 week ago

    Looks like that fixed the issue. Thanks!

    wpsolr
    Keymaster
    # 8 months, 1 week ago

    You can copy here the Solr startup command line that solved your issue. It might help other visitors.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.