Modify the startup script (Linux environment: kafkaDir / bin / kafka-server-start.sh)
Modify: Export KAFKA_HEAP_OPTS = "- Xmx 1G -Xms 1G "
为:export KAFKA_HEAP_OPTS="-Xmx256M -Xms128M"
# Can be changed to other suitable size, there will be changed to 256M and 128M 1G