Zookeeper memory adjustment method

Zookeeper memory adjustment method

Copy the following parameters to /usr/local/service/zookeeper/bin/zkServer.sh

export ZOO_LOG_DIR=/data/emr/zookeeper/logs
export JAVA_HOME=/usr/local/jdk/
export JVMFLAGS="-Xmx4096m -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:GCPauseIntervalMillis=100"

Save and restart zk
Insert image description here

Note: Environments with Kerberos require special attention to authentication issues

Guess you like

Origin blog.csdn.net/qq_42264264/article/details/130827072