try tweaking kafka config to use fewer threads
MODIFY
docker-compose-kafka.env
docker-compose-kafka.env
+
#################################
# Common Kafka config
#################################
@@ -33,14 +34,16 @@ KAFKA_SSL_SECURE_RANDOM_IMPLEMENTATION=SHA1PRNG
######## Config
KAFKA_DELETE_TOPIC_ENABLE=true
-# KAFKA_NUM_NETWORK_THREADS=3
-# KAFKA_NUM_IO_THREADS=8
+KAFKA_NUM_NETWORK_THREADS=1
+KAFKA_NUM_IO_THREADS=1
+KAFKA_BACKGROUND_THREADS=1
+KAFKA_LOG_CLEANER_THREADS=0
# KAFKA_SOCKET_SEND_BUFFER_BYTES=102400
# KAFKA_SOCKET_RECEIVE_BUFFER_BYTES=102400
# KAFKA_SOCKET_REQUEST_MAX_BYTES=104857600
KAFKA_LOG_DIRS=/tmp/kafka_log
KAFKA_NUM_PARTITIONS=1
KAFKA_NUM_RECOVERY_THREADS_PER_DATA_DIR=1
-KAFKA_LOG_RETENTION_HOURS=168
+KAFKA_LOG_RETENTION_HOURS=1
# KAFKA_LOG_SEGMENT_BYTES=1073741824
# KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS=300000

try tweaking kafka config to use fewer threads