Skip to content

Disable the Citation Cache#226

Draft
JCRPaquin wants to merge 5 commits intomainfrom
jcrpaquin/improvement/solr-9.0-no-cache
Draft

Disable the Citation Cache#226
JCRPaquin wants to merge 5 commits intomainfrom
jcrpaquin/improvement/solr-9.0-no-cache

Conversation

@JCRPaquin
Copy link
Member

⚠️ 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