You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by el...@apache.org on 2023/03/16 21:52:07 UTC

[solr] branch branch_9x updated: SOLR-8803: Some doc changes. More is needed for docker.

This is an automated email from the ASF dual-hosted git repository.

elyograg pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new f5a940c1bd0 SOLR-8803: Some doc changes.  More is needed for docker.
f5a940c1bd0 is described below

commit f5a940c1bd08f92646bb5ebfa58d18a5fa6029fb
Author: Shawn Heisey <el...@apache.org>
AuthorDate: Thu Mar 16 15:49:29 2023 -0600

    SOLR-8803: Some doc changes.  More is needed for docker.
---
 .../modules/deployment-guide/pages/jvm-settings.adoc              | 6 +++---
 .../modules/deployment-guide/pages/taking-solr-to-production.adoc | 8 +++-----
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/jvm-settings.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/jvm-settings.adoc
index d1217258a63..a40cdc4073e 100644
--- a/solr/solr-ref-guide/modules/deployment-guide/pages/jvm-settings.adoc
+++ b/solr/solr-ref-guide/modules/deployment-guide/pages/jvm-settings.adoc
@@ -49,9 +49,9 @@ When heaps grow to larger sizes, it is imperative to test extensively before goi
 It is often better in these cases to run multiple JVMs, each with a limited amount of memory allocated to their heaps.
 One way to achieve this is to run Solr as a https://hub.docker.com/_/solr?tab=tags[Docker container].
 * It's good practice to periodically re-analyze the GC logs and/or monitor with xref:metrics-reporting.adoc[] to see if the memory usage has changed due to changes in your application, number of documents, etc.
-* On *nix systems, Solr will run with "OOM killer script" (see `solr/bin/oom_solr.sh`).
-This will forcefully stop Solr when the heap is exhausted rather than continue in an indeterminate state.
-You can additionally request a heap dump on OOM through the values in `solr.in.sh`
+* Solr will run with an option that causes the JVM to crash on OutOfMemoryError exceptions.
+This will forcefully stop Solr when a system resource is exhausted rather than continue in an indeterminate state.
+You can additionally request a heap dump on OOME through the values in `solr.in.sh`
 * All current (Java 11) garbage collectors can hit "stop the world" collections, which suspend the JVM until completed.
 If, through monitoring, these garbage collections are frequent and greater than your application can tolerate, additional tuning should be considered.
 "Stop the world" pauses greater than 5 seconds are rarely acceptable, and having them be less than 1 second is desirable.
diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
index 5f0a7ba28af..fafd3ebe581 100644
--- a/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
+++ b/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
@@ -248,12 +248,10 @@ For more information about garbage collection settings refer to following articl
 
 You can also refer to xref:jvm-settings.adoc[] for tuning your memory and garbage collection settings.
 
-==== Out-of-Memory Shutdown Hook
+==== Out-of-Memory Handling
 
-The `bin/solr` script registers the `bin/oom_solr.sh` script to be called by the JVM if an OutOfMemoryError occurs.
-The `oom_solr.sh` script will issue a `kill -9` to the Solr process that experiences the `OutOfMemoryError`.
-This behavior is recommended when running in SolrCloud mode so that ZooKeeper is immediately notified that a node has experienced a non-recoverable error.
-Take a moment to inspect the contents of the `/opt/solr/bin/oom_solr.sh` script so that you are familiar with the actions the script will perform if it is invoked by the JVM.
+The `bin/solr` script uses the `-XX:+CrashOnOutOfMemoryError` JVM option to crash Solr on `OutOfMemoryError` exceptions.
+This behavior is recommended. In SolrCloud mode ZooKeeper will be immediately notified that a node has experienced a non-recoverable error.
 
 === Going to Production with SolrCloud