You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ol...@apache.org on 2018/08/07 12:06:51 UTC
[ambari] branch branch-2.7 updated: AMBARI-24411. Infra Solr: gc
logs are not rotated by default. (#1979)
This is an automated email from the ASF dual-hosted git repository.
oleewere pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new 0775993 AMBARI-24411. Infra Solr: gc logs are not rotated by default. (#1979)
0775993 is described below
commit 0775993a36386a980dc89a842346e5a38a438567
Author: Olivér Szabó <ol...@gmail.com>
AuthorDate: Tue Aug 7 14:06:49 2018 +0200
AMBARI-24411. Infra Solr: gc logs are not rotated by default. (#1979)
---
.../AMBARI_INFRA_SOLR/0.1.0/configuration/infra-solr-env.xml | 2 +-
.../AMBARI_INFRA_SOLR/0.1.0/properties/infra-solr-env.sh.j2 | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/0.1.0/configuration/infra-solr-env.xml b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/0.1.0/configuration/infra-solr-env.xml
index e9b6f4d..afe17a2 100644
--- a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/0.1.0/configuration/infra-solr-env.xml
+++ b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/0.1.0/configuration/infra-solr-env.xml
@@ -305,7 +305,7 @@
<property>
<name>infra_solr_gc_log_opts</name>
- <value>-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime</value>
+ <value>-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=15 -XX:GCLogFileSize=200M</value>
<display-name>Infra Solr GC log options</display-name>
<description>Infra Solr GC log options</description>
<on-ambari-upgrade add="true"/>
diff --git a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/0.1.0/properties/infra-solr-env.sh.j2 b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/0.1.0/properties/infra-solr-env.sh.j2
index 44a1aa2..0ca8522 100644
--- a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/0.1.0/properties/infra-solr-env.sh.j2
+++ b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/0.1.0/properties/infra-solr-env.sh.j2
@@ -24,7 +24,7 @@ SOLR_JAVA_MEM="-Xms{{infra_solr_min_mem}}m -Xmx{{infra_solr_max_mem}}m"
SOLR_JAVA_STACK_SIZE="-Xss{{infra_solr_java_stack_size}}m"
-GC_LOG_OPTS="{{infra_solr_gc_log_opts}}"
+GC_LOG_OPTS="{{infra_solr_gc_log_opts}} -Xloggc:{{infra_solr_log_dir}}/solr_gc.log"
GC_TUNE="{{infra_solr_gc_tune}}"