kafka用命令发送数据直接终端卡死

环境说明

  1. 系统:mac pro
  2. kafka版本:2.1.1

问题

通过kafka-console-producer 去打数据,数据长度超过1024就直接导致终端卡死了。小于1024就正常发送。有什么解决方式吗?
示例数据:sadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhus
超过这个数据长度就终端直接卡死了。

尝试

  1. 通过service.properties修改了配置:socket.send.buffer.bytes=1024000,并没有效果
  2. 通过producer.properties修改了配置:max.request.size=1024000,并没有效果

示例图片

screenshot






发表于: 2月前   最后更新时间: 2月前   游览量:261
上一条: 到头了!
下一条: 已经是最后了!

  • 这个改了吗?
    max.message.bytes