Rowan Moul
10/26/2023, 11:07 PMkapa.ai
10/26/2023, 11:08 PMairbyte-server could be due to the Source worker within a Sync job. The Source worker reads up to 10,000 records in memory, which can present problems for database sources with tables that have large row sizes. For example, a table with an average row size of 0.5MBs will require 0.5 * 10000 / 1000 = 5GBs of RAM. Java connectors, which include all Source database connectors, follow Java's default behavior with container memory and will only use up to 1/4 of the host's allocated memory. On a Docker agent with 8GBs of RAM configured, a Java connector limits itself to 2Gbs of RAM and will see Out-of-Memory exceptions if this goes higher. The same applies to Kubernetes pods. You may want to customize this by setting JOB_MAIN_CONTAINER_MEMORY_REQUEST and JOB_MAIN_CONTAINER_MEMORY_LIMIT environment variables to custom values. Please note that users currently need to over-specify memory resource for Java connectors due to this behavior. For more information, you can refer to the [Airbyte documentation on scaling](https://docs.airbyte.com/operator-guides/scaling-airbyte).Rowan Moul
10/26/2023, 11:14 PMkapa.ai
10/27/2023, 4:35 PM