lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Heisey (JIRA)" <>
Subject [jira] [Commented] (SOLR-11514) Solr 7.1 does not honor values specified in
Date Mon, 23 Oct 2017 21:12:00 GMT


Shawn Heisey commented on SOLR-11514:

I have confirmed that the "status" output *does* only show the "total" memory.  Right after
startup with -Xms512m, if there is not a significant amount of data indexed to the Solr instance,
that number will show 490.7 MB, even if the -Xmx setting is much higher.

This patch to the code should fix that output:

diff --git a/solr/core/src/java/org/apache/solr/util/ b/solr/core/src/java/org/apache/solr/util/
index f4cd7c7..5cbcc13 100644
--- a/solr/core/src/java/org/apache/solr/util/
+++ b/solr/core/src/java/org/apache/solr/util/
@@ -942,7 +942,8 @@ public class SolrCLI {
       String usedMemory = asString("/jvm/memory/used", info);
       String totalMemory = asString("/jvm/memory/total", info);
-      status.put("memory", usedMemory+" of "+totalMemory);
+      String maxMemory = asString("/jvm/memory/max", info);
+      status.put("memory", usedMemory+" of "+totalMemory+", max="+maxMemory);
       // if this is a Solr in solrcloud mode, gather some basic cluster info
       if ("solrcloud".equals(info.get("mode"))) {

> Solr 7.1 does not honor values specified in
> ------------------------------------------------------
>                 Key: SOLR-11514
>                 URL:
>             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
>            Reporter: Howard Black
>         Attachments: solr,
> Just installed Solr 7.1 and zookeeper 3.4.10 into a test environment and it seems that
arguments in the file in /etc/default are not getting picked up when starting the
> I have this specified in 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:
> ./ /home/hblack/solr-7.1.0.tgz -i /opt -d /mnt/solr-home -s solr
-u solr

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message