启动flume报JVM内存溢出错误:
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: GC overhead limit exceeded
- 1
- 2
解决方案
修改:
ambari修改设置参数
Advanced flume-env:export JAVA_OPTS=
问题依旧
原因:
/usr/hdp/2.5.0.0-1245/flume/bin/ flume-ng.distro 启动文件中写死了:JAVA_OPTS="-Xmx20m"
需要手工修改:
JAVA_OPTS="-Xms8192m -Xmx8192m -Xss256k -Xmn2g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -Dcom.sun.management.jmxremote"