How to set MSK Connect memory?

0

I am dealing with an OutOfMemoryError: Java heap space from my Kafka connector running on MSK Connect. While I see several options for how to change CPU resources, I can't find a way to adjust the memory available to the connector.

I particular, is there a way to adjust KAFKA_HEAP_OPTS? Or is that the wrong approach?

Ali
feita há 4 meses434 visualizações
1 Resposta
1
Resposta aceita

Usually Java OutOfMemoryError happens when application needs to create a new object, but it doesn't have enough space in heap for this object even after garbage collection. In order to mitigate this issue, you should increase memory memory available for the connector by increasing MCU count. Each MCU represents 1 vCPU of compute and 4 GiB of memory[1]. Further you can also check and test the Autoscaled capacity mode of MSK connect connectors which is suitable for the cases where the capacity requirements for your connector are variable or if you don't know them in advance[1].

[1] : https://docs.aws.amazon.com/msk/latest/developerguide/msk-connect-connectors.html#msk-connect-capacity

profile pictureAWS
respondido há 4 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas