Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
5.5.1
Description
Right now the start script always uses $SOLR_TIP/bin/oom_solr.sh to handle OutOfMemoryException. This script only kills instance of solr.
We need to do some additional things (e.g sent mail about this exception)
What do you think about adding possibility to set up own script?
Proposition:
if [ -z "$SOLR_OOM_SCRIPT" ]; then SOLR_OOM_SCRIPT=$SOLR_TIP/bin/oom_solr.sh fi [...] nohup "$JAVA" "${SOLR_START_OPTS[@]}" $SOLR_ADDL_ARGS \ "-XX:OnOutOfMemoryError=$SOLR_OOM_SCRIPT $SOLR_PORT $SOLR_LOGS_DIR" \ -jar start.jar "${SOLR_JETTY_CONFIG[@]}" \ 1>"$SOLR_LOGS_DIR/solr-$SOLR_PORT-console.log" 2>&1 & echo $! > "$SOLR_PID_DIR/solr-$SOLR_PORT.pid"