From 3a5438ec1facb1fe8d159667a8936c892901827e Mon Sep 17 00:00:00 2001 From: Timothy Potter Date: Fri, 12 Dec 2014 17:07:06 +0000 Subject: [PATCH] SOLR-6843: JMX RMI connector should be disabled by default but can be activated by setting ENABLE_REMOTE_JMX_OPTS to true in solr.in.(sh|cmd). git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1644978 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 3 +++ solr/bin/solr.in.cmd | 8 ++++---- solr/bin/solr.in.sh | 8 ++++---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index e1d86ee7821..d5d735b30f4 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -484,6 +484,9 @@ Other Changes the example directory instead of server/solr. (Alexandre Rafalovitch, Anshum Gupta, hossman, Timothy Potter) +* SOLR-6843: JMX RMI connector should be disabled by default but can be activated by + setting ENABLE_REMOTE_JMX_OPTS to true in solr.in.(sh|cmd). (Timothy Potter) + ================== 4.10.3 ================== Bug Fixes diff --git a/solr/bin/solr.in.cmd b/solr/bin/solr.in.cmd index 983110464a8..607ae09464d 100644 --- a/solr/bin/solr.in.cmd +++ b/solr/bin/solr.in.cmd @@ -58,10 +58,10 @@ REM set SOLR_HOST=192.168.1.1 REM By default the start script uses UTC; override the timezone if needed REM set SOLR_TIMEZONE=UTC -REM By default the start script enables some RMI related parameters to allow attaching -REM JMX savvy tools like VisualVM remotely, set to "false" to disable that behavior -REM (recommended in production environments) -set ENABLE_REMOTE_JMX_OPTS=true +REM Set to true to activate the JMX RMI connector to allow remote JMX client applications +REM to monitor the JVM hosting Solr; set to "false" to disable that behavior +REM (false is recommended in production environments) +set ENABLE_REMOTE_JMX_OPTS=false REM The script will use SOLR_PORT+10000 for the RMI_PORT or you can set it here REM set RMI_PORT=18983 diff --git a/solr/bin/solr.in.sh b/solr/bin/solr.in.sh index b35395a575d..b61d9fe1f21 100644 --- a/solr/bin/solr.in.sh +++ b/solr/bin/solr.in.sh @@ -56,10 +56,10 @@ GC_TUNE="-XX:NewRatio=3 \ # By default the start script uses UTC; override the timezone if needed #SOLR_TIMEZONE="UTC" -# By default the start script enables some RMI related parameters to allow attaching -# JMX savvy tools like VisualVM remotely, set to "false" to disable that behavior -# (recommended in production environments) -ENABLE_REMOTE_JMX_OPTS="true" +# Set to true to activate the JMX RMI connector to allow remote JMX client applications +# to monitor the JVM hosting Solr; set to "false" to disable that behavior +# (false is recommended in production environments) +ENABLE_REMOTE_JMX_OPTS="false" # The script will use SOLR_PORT+10000 for the RMI_PORT or you can set it here # RMI_PORT=18983