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
已提問 4 個月前檢視次數 434 次
1 個回答
1
已接受的答案

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
已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南