Amine Salhi
10/21/2024, 8:01 AMuser
10/21/2024, 8:01 AMJOB_MAIN_CONTAINER_MEMORY_REQUEST
and JOB_MAIN_CONTAINER_MEMORY_LIMIT
environment variables to custom values. This allows you to control the amount of memory that Airbyte can use ([source](https://docs.airbyte.com/operator-guides/scaling-airbyte#memory)). 3. Optimize Sync Jobs: The primary driver of increased resource usage in Airbyte is the number of concurrent syncs running at any given time. Each concurrent sync requires at least 3 additional connector pods to be running at once (orchestrator
, read
, write
). If your deployment of Airbyte is intended to run many concurrent syncs at once, you are likely to require an increased number of instances to run all syncs ([source](https://docs.airbyte.com/enterprise-setup/scaling-airbyte#concurrent-syncs)). 4. Investigate Memory Leaks: There have been reports of memory leaks in Airbyte, particularly with the server and worker gradually increasing their memory usage over time. This is a known issue and is being investigated. Some users have found a temporary workaround by manually triggering the Java Garbage Collector (GC) in the worker container ([source](https://github.com/airbytehq/airbyte/discussions/34483)). Remember, these are all workarounds and the root cause of the issue is still being investigated. It's recommended to follow the Github issues linked above for updates on this issue.