flume日志报错,同时没能正常收集相关日志文件
最近flume报了一个错:Caused by: org.apache.flume.ChannelException: Space for commit to queuecouldn't be acquired Sinks are likely not keeping up with sources, or thebuffer size is too tight atorg.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
解决方法:
1) 根据网络上的方法,修改了一下参数
agent.channels.memoryChanne3.keep-alive= 60
agent.channels.memoryChanne3.capacity= 1000000
2) 修改java最大内存大小
vi bin/flume-ng
JAVA_OPTS="-Xmx2048m"
3) 重启了所有flume程序,包括客户端和服务器端,以后是否还有问题,只能继续观察了。