flume-ng 问题处理(1)

1,flume日志报错,同时没能正常收集相关日志文件

Caused by: org.apache.flume.ChannelException: Space for commit to queue couldn't be acquired Sinks are likely not keeping up with sources, or the buffer size is too tight
at org.apache.flume.channel.MemoryChannel$MemoryTransaction.doCommit(MemoryChannel.java:126)
at org.apache.flume.channel.BasicTransactionSemantics.commit(BasicTransactionSemantics.java:151)
at org.apache.flume.channel.ChannelProcessor.processEventBatch(ChannelProcessor.java:192)
... 28 more

2,根据网络上的方法,修改了一下参数

agent.channels.memoryChanne3.keep-alive = 60
agent.channels.memoryChanne3.capacity = 1000000

修改java最大内存大小
vi bin/flume-ng
JAVA_OPTS="-Xmx2048m"
3, 重启了所有flume程序,包括客户端和服务器端,以后是否还有问题,只能继续观察了

参考文档

http://heipark.iteye.com/blog/1617995

你可能感兴趣的:(flume-ng 问题处理(1))