This is an automated email from the ASF dual-hosted git repository.
oleewere pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new db8dcb4 AMBARI-24411. Infra Solr: gc logs are not rotated by default.
(#1978)
db8dcb4 is described below
commit db8dcb48854e1c789ba706b68e4a199f41189aa1
Author: Olivér Szabó <[email protected]>
AuthorDate: Tue Aug 7 14:08:03 2018 +0200
AMBARI-24411. Infra Solr: gc logs are not rotated by default. (#1978)
---
.../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}}"