KafkaServer.out报Java OpenJDK(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x000000c0000000, 4096, 0) failed; error='Cannot allocate memory' (errno=12)
报错大意是:内存溢出
解决办法:修改启动脚本的内存参数
修改bin/kafka-server-start.sh,将export KAFKA_HEAP_OPTS="-Xmx1G -Xms1G"修改为export KAFKA_HEAP_OPTS="-Xmx256m -Xms256m"即可。