Java kafka connect的OOM例外情况

Java kafka connect的OOM例外情况,java,apache-kafka,apache-kafka-connect,Java,Apache Kafka,Apache Kafka Connect,我已经编写了一个kafka connect jar,我得到以下错误: 我在KAFKA运行类中提供了KAFKA\u HEAP\u OPTS=“-Xmx8g”。关于连接偏移量,我还提供了50个分区。我作为docker的一部分运行它,并专门为容器设置了8GB内存。请让我知道是否有任何重要参数设置,以确保不会抛出OOM异常 Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "K

我已经编写了一个kafka connect jar,我得到以下错误:

我在
KAFKA运行类
中提供了
KAFKA\u HEAP\u OPTS=“-Xmx8g”
。关于连接偏移量,我还提供了50个分区。我作为docker的一部分运行它,并专门为容器设置了8GB内存。请让我知道是否有任何重要参数设置,以确保不会抛出OOM异常

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "KafkaBasedLog Work Thread - connect-status"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "kafka-producer-network-thread | producer-4"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "kafka-producer-network-thread | producer-3"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "kafka-producer-network-thread | producer-2"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "DistributedHerder"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp667346055-26"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "KafkaBasedLog Work Thread - connect-offsets"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "KafkaBasedLog Work Thread - connect-configs"
Exception in thread "org.eclipse.jetty.server.session.HashSessionManager@7d9d0818Timer" java.lang.OutOfMemoryError: Java heap space
2017-10-13 11:50:52,320 ERROR   Task METEOSATJDBCSink-0 threw an uncaught and unrecoverable exception during shutdown   (org.apache.kafka.connect.runtime.WorkerTask:123)
java.lang.OutOfMemoryError: Java heap space

您正在运行什么卡夫卡连接版本?在3.1.2中固定了一个。