You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by is...@apache.org on 2022/11/03 00:02:31 UTC

[solr] 01/01: Thread dump on disk when killed during stop

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

ishan pushed a commit to branch jira/solr-16414-investigate-slowdown
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 43071c5eca8d5082b831b973652bf2e2b7984469
Author: Ishan Chattopadhyaya <is...@apache.org>
AuthorDate: Thu Nov 3 05:32:08 2022 +0530

    Thread dump on disk when killed during stop
---
 solr/bin/solr | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/solr/bin/solr b/solr/bin/solr
index 83b41e9b58d..cc5bd87ffd9 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -878,10 +878,10 @@ function stop_solr() {
   if [[ "${STAT:-Z}" != "Z" ]]; then
     if [ -n "{$JSTACK:-}" ]; then
       echo -e "Solr process $SOLR_PID is still running; jstacking it now."
-      $JSTACK $SOLR_PID
+      $JSTACK $SOLR_PID > $SOLR_PID_DIR/solr-threaddump.txt
     elif [ "$JATTACH" != "" ]; then
       echo -e "Solr process $SOLR_PID is still running; jattach threaddumping it now."
-      $JATTACH $SOLR_PID threaddump
+      $JATTACH $SOLR_PID threaddump > $SOLR_PID_DIR/solr-threaddump.txt
     fi
     echo -e "Solr process $SOLR_PID is still running; forcefully killing it now."
     kill -9 $SOLR_PID