Kafka agent memory configuration

Flume public profile: $ {FLUME_HOME} /conf/flume-env.sh

Wherein the configuration export JAVA_OPTS = "- Xms100m -Xmx2000m -Dcom.sun.management.jmxremote" can be used to configure a common agent heap size, but if you want to configure a single agent,

Parameters can be added to the heap in the startup script

nohup ${FLUME_HOME}/bin/flume-ng agent -n agent -c /usr/libra/flume/conf -Xms100m -Xmx300m -f ${configurePath} -Dflume.root.logger=DEBUG,console >> /usr/libra/flume/logs/log.log 2>&1 &

Thus the memory may specify different values ​​to different agent

Guess you like

Origin www.cnblogs.com/liwutao/p/11306020.html