kafka run out of memory problem solving

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
 

Guess you like

Origin blog.csdn.net/ydeway/article/details/93885845