lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Heisey (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-11514) Solr 7.1 does not honor values specified in solr.in.sh
Date Thu, 26 Oct 2017 14:52:00 GMT

    [ https://issues.apache.org/jira/browse/SOLR-11514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16218840#comment-16218840
] 

Shawn Heisey edited comment on SOLR-11514 at 10/26/17 2:51 PM:
---------------------------------------------------------------

OK... I'll give you that it is picking the SOLR_JAVA_MEM variable with 
the correct value.  However, it is not picking up any of the following 
after I changed it in /etc/default/solr.in.sh

{noformat}
ZK_HOST="solr-zoo01:2601,solr-zoo02:2601,solr-zoo03:2601,solr-zoo04:2601,solr-zoo05:2601"

# Set the ZooKeeper client timeout (for SolrCloud mode)
ZK_CLIENT_TIMEOUT="15000"

# By default the start script uses "localhost"; override the hostname here
# for production SolrCloud environments to control the hostname exposed 
to cluster state
SOLR_HOST="solr-node01"

# By default the start script uses UTC; override the timezone if needed
SOLR_TIMEZONE="US/Eastern"

# Location where the bin/solr script will save PID files for running 
instances
# If not set, the script will create PID files in $SOLR_TIP/bin
SOLR_PID_DIR=/mnt/solr-home

# Path to a directory for Solr to store cores and their data. By 
default, Solr will use server/solr
# If solr.xml is not stored in ZooKeeper, this directory needs to 
contain solr.xml
SOLR_HOME=/mnt/solr-home

# Path to a directory that Solr will use as root for data folders for 
each core.
# If not set, defaults to <instance_dir>/data. Overridable per core 
through 'dataDir' core property
SOLR_DATA_HOME=/mnt/solr-home/data

# Solr provides a default Log4J configuration properties file in 
server/resources
# however, you may want to customize the log settings and file appender 
location
# so you can point the script to use a different log4j.properties file
LOG4J_PROPS=/mnt/solr-home/log4j.properties

# Changes the logging level. Valid values: ALL, TRACE, DEBUG, INFO, 
WARN, ERROR, FATAL, OFF. Default is INFO
# This is an alternative to changing the rootLogger in log4j.properties
SOLR_LOG_LEVEL=WARN

# Location where Solr should write logs to. Absolute or relative to solr 
start dir
SOLR_LOGS_DIR=/mnt/logs

# Enables log rotation, cleanup, and archiving during start. Setting 
SOLR_LOG_PRESTART_ROTATION=false will skip start
# time rotation of logs, and the archiving of the last GC and console 
log files. It does not affect Log4j configuration.
# This pre-startup rotation may need to be disabled depending how much 
you customize the default logging setup.
SOLR_LOG_PRESTART_ROTATION=true

# Sets the port Solr binds to, default is 8983
SOLR_PORT=9080
{noformat}

{noformat}
[root@solr-node01 logs]# curl http://localhost:8983/solr/admin/info/system
{
   "responseHeader":{
     "status":0,
     "QTime":46},
   "mode":"std",
   "solr_home":"/opt/solr/server/solr",
   "lucene":{
     "solr-spec-version":"7.1.0",
     "solr-impl-version":"7.1.0 84c90ad2c0218156c840e19a64d72b8a38550659 
- ubuntu - 2017-10-13 16:15:59",
     "lucene-spec-version":"7.1.0",
     "lucene-impl-version":"7.1.0 
84c90ad2c0218156c840e19a64d72b8a38550659 - ubuntu - 2017-10-13 16:12:42"},
   "jvm":{
     "version":"1.8.0_144 25.144-b01",
     "name":"Oracle Corporation OpenJDK 64-Bit Server VM",
     "spec":{
       "vendor":"Oracle Corporation",
       "name":"Java Platform API Specification",
       "version":"1.8"},
     "jre":{
       "vendor":"Oracle Corporation",
       "version":"1.8.0_144"},
     "vm":{
       "vendor":"Oracle Corporation",
       "name":"OpenJDK 64-Bit Server VM",
       "version":"25.144-b01"},
     "processors":2,
     "memory":{
       "free":"463.6 MB",
       "total":"490.7 MB",
       "max":"3.8 GB",
       "used":"27.1 MB (%0.7)",
       "raw":{
         "free":486137936,
         "total":514523136,
         "max":4116054016,
         "used":28385200,
         "used%":0.6896216592314031}},
     "jmx":{
"bootclasspath":"/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/classes",
"classpath":"/opt/solr-7.1.0/server/lib/gmetric4j-1.0.7.jar:/opt/solr-7.1.0/server/lib/javax.servlet-api-3.1.0.jar:/opt/solr-7.1.0/server/lib/jetty-continuation-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-deploy-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-http-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-io-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-jmx-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-rewrite-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-security-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-server-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-servlet-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-servlets-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-util-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-webapp-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-xml-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/metrics-core-3.2.2.jar:/opt/solr-7.1.0/server/lib/metrics-ganglia-3.2.2.jar:/opt/solr-7.1.0/server/lib/metrics-graphite-3.2.2.jar:/opt/solr-7.1.0/server/lib/metrics-jetty9-3.2.2.jar:/opt/solr-7.1.0/server/lib/metrics-jvm-3.2.2.jar:/opt/solr-7.1.0/server/lib/ext/jcl-over-slf4j-1.7.7.jar:/opt/solr-7.1.0/server/lib/ext/jul-to-slf4j-1.7.7.jar:/opt/solr-7.1.0/server/lib/ext/log4j-1.2.17.jar:/opt/solr-7.1.0/server/lib/ext/slf4j-api-1.7.7.jar:/opt/solr-7.1.0/server/lib/ext/slf4j-log4j12-1.7.7.jar:/opt/solr-7.1.0/server/resources",
       "commandLineArgs":["-Xms512m",
         "-Xmx4096m",
         "-XX:NewRatio=3",
         "-XX:SurvivorRatio=4",
         "-XX:TargetSurvivorRatio=90",
         "-XX:MaxTenuringThreshold=8",
         "-XX:+UseConcMarkSweepGC",
         "-XX:+UseParNewGC",
         "-XX:ConcGCThreads=4",
         "-XX:ParallelGCThreads=4",
         "-XX:+CMSScavengeBeforeRemark",
         "-XX:PretenureSizeThreshold=64m",
         "-XX:+UseCMSInitiatingOccupancyOnly",
         "-XX:CMSInitiatingOccupancyFraction=50",
         "-XX:CMSMaxAbortablePrecleanTime=6000",
         "-XX:+CMSParallelRemarkEnabled",
         "-XX:+ParallelRefProcEnabled",
         "-XX:-OmitStackTraceInFastThrow",
         "-verbose:gc",
         "-XX:+PrintHeapAtGC",
         "-XX:+PrintGCDetails",
         "-XX:+PrintGCDateStamps",
         "-XX:+PrintGCTimeStamps",
         "-XX:+PrintTenuringDistribution",
         "-XX:+PrintGCApplicationStoppedTime",
         "-Xloggc:/opt/solr/server/logs/solr_gc.log",
         "-XX:+UseGCLogFileRotation",
         "-XX:NumberOfGCLogFiles=9",
         "-XX:GCLogFileSize=20M",
         "-Dsolr.log.dir=/opt/solr/server/logs",
         "-Djetty.port=8983",
         "-DSTOP.PORT=7983",
         "-DSTOP.KEY=solrrocks",
         "-Duser.timezone=UTC",
         "-Djetty.home=/opt/solr/server",
         "-Dsolr.solr.home=/opt/solr/server/solr",
         "-Dsolr.data.home=",
         "-Dsolr.install.dir=/opt/solr",
"-Dsolr.default.confdir=/opt/solr/server/solr/configsets/_default/conf",
         "-Xss256k",
         "-Dsolr.jetty.https.port=8983",
         "-Dsolr.log.muteconsole",
         "-XX:OnOutOfMemoryError=/opt/solr/bin/oom_solr.sh 8983 
/opt/solr/server/logs"],
       "startTime":"2017-10-25T14:44:30.708Z",
       "upTimeMS":204483}},
   "system":{
     "name":"Linux",
     "arch":"amd64",
     "availableProcessors":2,
     "systemLoadAverage":0.08,
     "version":"3.10.0-693.2.2.el7.x86_64",
     "committedVirtualMemorySize":6980812800,
     "freePhysicalMemorySize":3074637824,
     "freeSwapSpaceSize":4294963200,
     "processCpuLoad":0.0,
     "processCpuTime":5070000000,
     "systemCpuLoad":0.0,
     "totalPhysicalMemorySize":6072004608,
     "totalSwapSpaceSize":4294963200,
     "maxFileDescriptorCount":4096,
     "openFileDescriptorCount":122,
     "uname":"Linux solr-node01 3.10.0-693.2.2.el7.x86_64 #1 SMP Sat Sep 
9 03:55:24 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux\n",
     "uptime":" 10:47:55 up 48 min,  3 users,  load average: 0.08, 0.04, 
0.08\n"}}
{noformat}



was (Author: hlblack56):
OK... I'll give you that it is picking the SOLR_JAVA_MEM variable with 
the correct value.  However, it is not picking up any of the following 
after I changed it in /etc/default/solr.in.sh

ZK_HOST="solr-zoo01:2601,solr-zoo02:2601,solr-zoo03:2601,solr-zoo04:2601,solr-zoo05:2601"

# Set the ZooKeeper client timeout (for SolrCloud mode)
ZK_CLIENT_TIMEOUT="15000"

# By default the start script uses "localhost"; override the hostname here
# for production SolrCloud environments to control the hostname exposed 
to cluster state
SOLR_HOST="solr-node01"

# By default the start script uses UTC; override the timezone if needed
SOLR_TIMEZONE="US/Eastern"

# Location where the bin/solr script will save PID files for running 
instances
# If not set, the script will create PID files in $SOLR_TIP/bin
SOLR_PID_DIR=/mnt/solr-home

# Path to a directory for Solr to store cores and their data. By 
default, Solr will use server/solr
# If solr.xml is not stored in ZooKeeper, this directory needs to 
contain solr.xml
SOLR_HOME=/mnt/solr-home

# Path to a directory that Solr will use as root for data folders for 
each core.
# If not set, defaults to <instance_dir>/data. Overridable per core 
through 'dataDir' core property
SOLR_DATA_HOME=/mnt/solr-home/data

# Solr provides a default Log4J configuration properties file in 
server/resources
# however, you may want to customize the log settings and file appender 
location
# so you can point the script to use a different log4j.properties file
LOG4J_PROPS=/mnt/solr-home/log4j.properties

# Changes the logging level. Valid values: ALL, TRACE, DEBUG, INFO, 
WARN, ERROR, FATAL, OFF. Default is INFO
# This is an alternative to changing the rootLogger in log4j.properties
SOLR_LOG_LEVEL=WARN

# Location where Solr should write logs to. Absolute or relative to solr 
start dir
SOLR_LOGS_DIR=/mnt/logs

# Enables log rotation, cleanup, and archiving during start. Setting 
SOLR_LOG_PRESTART_ROTATION=false will skip start
# time rotation of logs, and the archiving of the last GC and console 
log files. It does not affect Log4j configuration.
# This pre-startup rotation may need to be disabled depending how much 
you customize the default logging setup.
SOLR_LOG_PRESTART_ROTATION=true

# Sets the port Solr binds to, default is 8983
SOLR_PORT=9080

[root@solr-node01 logs]# curl http://localhost:8983/solr/admin/info/system
{
   "responseHeader":{
     "status":0,
     "QTime":46},
   "mode":"std",
   "solr_home":"/opt/solr/server/solr",
   "lucene":{
     "solr-spec-version":"7.1.0",
     "solr-impl-version":"7.1.0 84c90ad2c0218156c840e19a64d72b8a38550659 
- ubuntu - 2017-10-13 16:15:59",
     "lucene-spec-version":"7.1.0",
     "lucene-impl-version":"7.1.0 
84c90ad2c0218156c840e19a64d72b8a38550659 - ubuntu - 2017-10-13 16:12:42"},
   "jvm":{
     "version":"1.8.0_144 25.144-b01",
     "name":"Oracle Corporation OpenJDK 64-Bit Server VM",
     "spec":{
       "vendor":"Oracle Corporation",
       "name":"Java Platform API Specification",
       "version":"1.8"},
     "jre":{
       "vendor":"Oracle Corporation",
       "version":"1.8.0_144"},
     "vm":{
       "vendor":"Oracle Corporation",
       "name":"OpenJDK 64-Bit Server VM",
       "version":"25.144-b01"},
     "processors":2,
     "memory":{
       "free":"463.6 MB",
       "total":"490.7 MB",
       "max":"3.8 GB",
       "used":"27.1 MB (%0.7)",
       "raw":{
         "free":486137936,
         "total":514523136,
         "max":4116054016,
         "used":28385200,
         "used%":0.6896216592314031}},
     "jmx":{
"bootclasspath":"/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/classes",
"classpath":"/opt/solr-7.1.0/server/lib/gmetric4j-1.0.7.jar:/opt/solr-7.1.0/server/lib/javax.servlet-api-3.1.0.jar:/opt/solr-7.1.0/server/lib/jetty-continuation-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-deploy-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-http-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-io-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-jmx-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-rewrite-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-security-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-server-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-servlet-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-servlets-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-util-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-webapp-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/jetty-xml-9.3.20.v20170531.jar:/opt/solr-7.1.0/server/lib/metrics-core-3.2.2.jar:/opt/solr-7.1.0/server/lib/metrics-ganglia-3.2.2.jar:/opt/solr-7.1.0/server/lib/metrics-graphite-3.2.2.jar:/opt/solr-7.1.0/server/lib/metrics-jetty9-3.2.2.jar:/opt/solr-7.1.0/server/lib/metrics-jvm-3.2.2.jar:/opt/solr-7.1.0/server/lib/ext/jcl-over-slf4j-1.7.7.jar:/opt/solr-7.1.0/server/lib/ext/jul-to-slf4j-1.7.7.jar:/opt/solr-7.1.0/server/lib/ext/log4j-1.2.17.jar:/opt/solr-7.1.0/server/lib/ext/slf4j-api-1.7.7.jar:/opt/solr-7.1.0/server/lib/ext/slf4j-log4j12-1.7.7.jar:/opt/solr-7.1.0/server/resources",
       "commandLineArgs":["-Xms512m",
         "-Xmx4096m",
         "-XX:NewRatio=3",
         "-XX:SurvivorRatio=4",
         "-XX:TargetSurvivorRatio=90",
         "-XX:MaxTenuringThreshold=8",
         "-XX:+UseConcMarkSweepGC",
         "-XX:+UseParNewGC",
         "-XX:ConcGCThreads=4",
         "-XX:ParallelGCThreads=4",
         "-XX:+CMSScavengeBeforeRemark",
         "-XX:PretenureSizeThreshold=64m",
         "-XX:+UseCMSInitiatingOccupancyOnly",
         "-XX:CMSInitiatingOccupancyFraction=50",
         "-XX:CMSMaxAbortablePrecleanTime=6000",
         "-XX:+CMSParallelRemarkEnabled",
         "-XX:+ParallelRefProcEnabled",
         "-XX:-OmitStackTraceInFastThrow",
         "-verbose:gc",
         "-XX:+PrintHeapAtGC",
         "-XX:+PrintGCDetails",
         "-XX:+PrintGCDateStamps",
         "-XX:+PrintGCTimeStamps",
         "-XX:+PrintTenuringDistribution",
         "-XX:+PrintGCApplicationStoppedTime",
         "-Xloggc:/opt/solr/server/logs/solr_gc.log",
         "-XX:+UseGCLogFileRotation",
         "-XX:NumberOfGCLogFiles=9",
         "-XX:GCLogFileSize=20M",
         "-Dsolr.log.dir=/opt/solr/server/logs",
         "-Djetty.port=8983",
         "-DSTOP.PORT=7983",
         "-DSTOP.KEY=solrrocks",
         "-Duser.timezone=UTC",
         "-Djetty.home=/opt/solr/server",
         "-Dsolr.solr.home=/opt/solr/server/solr",
         "-Dsolr.data.home=",
         "-Dsolr.install.dir=/opt/solr",
"-Dsolr.default.confdir=/opt/solr/server/solr/configsets/_default/conf",
         "-Xss256k",
         "-Dsolr.jetty.https.port=8983",
         "-Dsolr.log.muteconsole",
         "-XX:OnOutOfMemoryError=/opt/solr/bin/oom_solr.sh 8983 
/opt/solr/server/logs"],
       "startTime":"2017-10-25T14:44:30.708Z",
       "upTimeMS":204483}},
   "system":{
     "name":"Linux",
     "arch":"amd64",
     "availableProcessors":2,
     "systemLoadAverage":0.08,
     "version":"3.10.0-693.2.2.el7.x86_64",
     "committedVirtualMemorySize":6980812800,
     "freePhysicalMemorySize":3074637824,
     "freeSwapSpaceSize":4294963200,
     "processCpuLoad":0.0,
     "processCpuTime":5070000000,
     "systemCpuLoad":0.0,
     "totalPhysicalMemorySize":6072004608,
     "totalSwapSpaceSize":4294963200,
     "maxFileDescriptorCount":4096,
     "openFileDescriptorCount":122,
     "uname":"Linux solr-node01 3.10.0-693.2.2.el7.x86_64 #1 SMP Sat Sep 
9 03:55:24 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux\n",
     "uptime":" 10:47:55 up 48 min,  3 users,  load average: 0.08, 0.04, 
0.08\n"}}







> Solr 7.1 does not honor values specified in solr.in.sh
> ------------------------------------------------------
>
>                 Key: SOLR-11514
>                 URL: https://issues.apache.org/jira/browse/SOLR-11514
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: release-scripts, SolrCloud
>    Affects Versions: 7.1
>         Environment: Linux RHEL 7, 8GB RAM, 60GB HDD, Solr 7.1 in cloud mode (zookeeper
3.4.10)
>            Reporter: Howard Black
>         Attachments: solr, solr.in.sh
>
>
> Just installed Solr 7.1 and zookeeper 3.4.10 into a test environment and it seems that
arguments in the solr.in.sh file in /etc/default are not getting picked up when starting the
server.
> I have this specified in solr.in.sh SOLR_JAVA_MEM="-Xms512m -Xmx6144m" but the JVM shows
-Xms512m -Xmx512m.
> Same goes for SOLR_LOGS_DIR=/mnt/logs  logs are still being written to /opt/solr/server/logs
> The command I used to install Solr is this:
> ./install_solr_service.sh /home/hblack/solr-7.1.0.tgz -i /opt -d /mnt/solr-home -s solr
-u solr



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message