返回到文章

采纳

编辑于

kafka 2.11-2.1.1 java.lang.OutOfMemoryError: Direct buffer memory 如何处理

kafka

提问说明

 java.lang.OutOfMemoryError: Direct buffer memory
  1. 已改为:ExplicitGCInvokesConcurrent:
KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Djava.awt.headless=true"

2:

KAFKA_HEAP_OPTS="-Xmx2048M -Xms2048M"

3: product.propertis

buffer.memory=1024M

Direct buffer memory