This is an automated email from the ASF dual-hosted git repository.
dsmiley pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 8499cbee32d Ref guide: Update GC logging options for Zookeeper (#2364)
8499cbee32d is described below
commit 8499cbee32dd145ae49c7dda40addc4f4897f8bd
Author: Radu Gheorghe <[email protected]>
AuthorDate: Fri Apr 12 01:33:09 2024 +0300
Ref guide: Update GC logging options for Zookeeper (#2364)
So they work for Java 9+, given that we require Java 11+. Existing ones are
for Java 8.
(cherry picked from commit 35c3c71a9893ad77e34e430dd676b1209954c948)
---
.../modules/deployment-guide/pages/zookeeper-ensemble.adoc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/solr/solr-ref-guide/modules/deployment-guide/pages/zookeeper-ensemble.adoc
b/solr/solr-ref-guide/modules/deployment-guide/pages/zookeeper-ensemble.adoc
index 54086f29858..9a899ca36c1 100644
--- a/solr/solr-ref-guide/modules/deployment-guide/pages/zookeeper-ensemble.adoc
+++ b/solr/solr-ref-guide/modules/deployment-guide/pages/zookeeper-ensemble.adoc
@@ -304,7 +304,7 @@ This file will need to exist on each server of the ensemble.
ZOO_LOG_DIR="/path/for/log/files"
ZOO_LOG4J_PROP="INFO,ROLLINGFILE"
-SERVER_JVMFLAGS="-Xms2048m -Xmx2048m -verbose:gc -XX:+PrintHeapAtGC
-XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps
-XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime
-Xloggc:$ZOO_LOG_DIR/zookeeper_gc.log -XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=9 -XX:GCLogFileSize=20M"
+SERVER_JVMFLAGS="-Xms2048m -Xmx2048m
-Xlog:gc*:file=$ZOO_LOG_DIR/zookeeper_gc.log:time,uptime:filecount=9,filesize=20M"
----
+
The property `ZOO_LOG_DIR` defines the location on the server where ZooKeeper
will print its logs.