Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable the Citation Cache #226

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JCRPaquin
Copy link
Contributor

⚠️ This PR is not meant to be merged ⚠️

Why?

The citation cache takes up ~5GB resident memory per active index in a running Montysolr instance. This doubles during serialization and can cause Solr instances to OOM or go into a GC thrashing state due to a surfeit of small objects created for each query. This code change is what we deploy to our index nodes; as they don't need to serve citation queries, and indexing is already relatively taxing on system memory, removing the citation cache greatly reduces incidence of OOM crashes during the indexing process.

What?

Very inelegantly removes the citation cache. This change as written causes crashes when citation queries are attempted without the cache (which probably shouldn't happen).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant