Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6972333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:57:15+00:00 2026-05-27T16:57:15+00:00

I have been tasked with dealing with OutOfMemoryError problems on a Solr installation. I

  • 0

I have been tasked with dealing with OutOfMemoryError problems on a Solr installation. I have finally managed to get it to stay up for more than a few minutes by using the AggressiveHeap JVM option.

I have never worked with Solr, so am feeling my way a bit.

This is the process of steps that we take :

  1. Start Tomcat
  2. Kick off a delta-import

After the delta-import is started, the heap consumption rises inexorably. We tried with Xmx set to 4 Gigs which caused OutOfMemoryErrors or the system to become unresponsive, so tried the AggressiveHeap option, which caused the JVM to take about 5.5 Gigs of RAM. As you can see in the screenie, this time the GC was able to free memory, the memory consumtion becomes less quick, and then to the right of the image there is another GC which actually works, and it keeps going like that.

VisualVM

What is this initial allocation of memory? Is it the index being loaded into RAM? Is there a way to reduce this?

I have tried tweaking ramBufferSizeMB, maxBufferedDocs, mergeFactor and have also uncommented the StandardIndexReaderFactory’s declaration to let me set termIndexDivisor to 12, but it is hard to see whether these changes have made any difference or not (yes: more analysis is needed).

The index has been created over a number of failed indexing sessions – the addition of the termIndexDivisor parameter is more recent – does the fact that the index files already exist stop this parameter from having any effect?

(The machine is physical, has 12 gigs of ram and 16 cores. It is sharing the machine with another large Tomcat instance. We are running Oracle JDK 1.6 21)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:57:16+00:00Added an answer on May 27, 2026 at 4:57 pm

    I ended up doing some digging with the debugger, as even with @fyr’s recommendations the memory consumption didn’t really decrease by much.

    It turned out that the deltaQuery and deltaImportQuery were both carbon copies of the query. This meant that instead of only returning the PKs of the entries that had changed since the last import, the query was returning every row and Solr was trying to store them in memory. 🙁

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been tasked with creating a Software Installation Approval section for our Intranet.
I have been tasked to overwrite all the free space on a few laptops
I have been tasked with implementing a PKI library in C# for a company
I have been tasked with going through a number of ColdFusion sites that have
I have been tasked with coming up with a compatibility guide for SharePoint 2007
I have been tasked to optimize some sql queries at work. Everything I have
I have been tasked with developing a solution that tracks changes to a database.
I have been tasked with finding an open source DOM XML parser. The parser
I have been tasked with creating a program that will generate an amortization schedule.
I have been tasked with creating a program what will create take files in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.