You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever Solr runs out of heap space, the result is fairly catastrophic:
Caused by: java.lang.OutOfMemoryError: Java heap space
2022-08-29 23:06:21.232 WARN (qtp1543148593-73) [ x:core] o.e.j.s.HttpChannel /solr/core/select
java.lang.OutOfMemoryError: Java heap space
The pod enters a weird endless cycle of the solr process being killed by Java, which in turn causes the health check to fail, so the pod is restarted, which leads to consuming all the RAM (again) ... on and on.
According to the docs there should be a variable SOLR_JAVA_MEM which I can not find anywhere in this repo. Is there some magic that uses this variable, or are the docs incorrect?
Upon more reading it looks like this envvar is consumed by solr itself, and isn't specific to the container image.
Whenever Solr runs out of heap space, the result is fairly catastrophic:
The pod enters a weird endless cycle of the solr process being killed by Java, which in turn causes the health check to fail, so the pod is restarted, which leads to consuming all the RAM (again) ... on and on.
The defaults for the environment variable are from the upstream Solr image https://solr.apache.org/guide/7_0/taking-solr-to-production.html#memory-and-gc-settings
Proposed change
Where there is not an override, to default the environment variable to
Perhaps something like this in an entrypoint?
So a minimum of 128MB, and a max of 2GB RAM.
If there is an environment variable override, to prefer that (similar to now).
The text was updated successfully, but these errors were encountered: