环境说明
- 系统:mac pro
- kafka版本:2.1.1
问题
通过kafka-console-producer 去打数据,数据长度超过1024就直接导致终端卡死了。小于1024就正常发送。有什么解决方式吗?
示例数据:sadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhus
超过这个数据长度就终端直接卡死了。
尝试
- 通过service.properties修改了配置:socket.send.buffer.bytes=1024000,并没有效果
- 通过producer.properties修改了配置:max.request.size=1024000,并没有效果
示例图片
这个改了吗?
max.message.bytes
改了哈~max.message.bytes=1024000
你的答案