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
asked 3 months ago413 views
1 Answer
1
Accepted Answer

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
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions