Kafka中QueueFullException异常
2016-09-23 18:15
381 查看
原文地址:https://cwiki.apache.org/confluence/display/KAFKA/FAQ
Why do I get QueueFullException in my producer when running in async mode?
This typically happens when the producer is trying to send messages quicker than the broker can handle. If the producer can't block, one will have to add enough brokers so that they jointly can handle the load. If the producer can block, one can set queue.enqueueTimeout.ms
in producer config to -1. This way, if the queue is full, the producer will block instead of dropping messages.
Why do I get QueueFullException in my producer when running in async mode?
This typically happens when the producer is trying to send messages quicker than the broker can handle. If the producer can't block, one will have to add enough brokers so that they jointly can handle the load. If the producer can block, one can set queue.enqueueTimeout.ms
in producer config to -1. This way, if the queue is full, the producer will block instead of dropping messages.
相关文章推荐
- [异常处理]class kafka.common.UnknownTopicOrPartitionException (kafka.server.ReplicaFetcherThread)
- kafka启动时内存异常
- strom和kafka整合报java.lang.ClassNotFoundException: com.google.common.base.Strings异常
- apache kafka系列之kafka.common.ConsumerRebalanceFailedException异常解决办法
- kafka0.8生产者异常处理
- Linux(CentOS)中常用软件安装,使用及异常——Zookeeper, Kafka
- kafka-storm-hbase的例子中出现的异常
- kafka.common.ConsumerRebalanceFailedException异常解决
- Linux(CentOS)中常用软件安装,使用及异常——Zookeeper, Kafka
- Spark streaming kafka OffsetOutOfRangeException 异常分析与解决
- 防火墙未开端口导致zookeeper集群异常,kafka起不来
- C语言版kafka消费者代码运行时异常kafka receive failed disconnected
- KafkaOffsetMonitor 监控异常处理(消息堆积)
- Kafka 启动出现JVM内存不足异常解决方法
- 【异常】SparkStreaming长时间运行出现: Dropping SparkListenerEvent because no remaining room in event queue
- Kafka错误2_ERROR Unexpected exception, exiting abnormally异常的一种原因
- Kafka java client 连接异常(org.apache.kafka.common.errors.TimeoutException: Failed to update metadata )
- BlockingQueue的异常Queue full
- Kafka发送超过broker限定大小的消息时Client和Broker端各自会有什么异常?
- LinkedBlockingQueue操作,线程安全问题,ConcurrentModificationException 异常分析与解决方案