Bernd Töpfer
10/07/2025, 2:48 PM025-10-07T14:43:18.787601+00:00 tt-airbyte-prod kernel: oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=cri-containerd-b63826b7015cd4399db883b566a11b2e7f28376ddc050564c91821aa8183019c.scope,mems_allowed=0,oom_memcg=/system.slice/docker-cb5adec3d0a1f9eec15c18d054ec2359e06ec949ba5c7b2d5b461c2eff912ad0.scope/kubelet.slice/kubelet-kubepods.slice/kubelet-kubepods-burstable.slice/kubelet-kubepods-burstable-podcb65326c_bd92_45db_9d1f_09b70e0b40ba.slice/cri-containerd-b63826b7015cd4399db883b566a11b2e7f28376ddc050564c91821aa8183019c.scope,task_memcg=/system.slice/docker-cb5adec3d0a1f9eec15c18d054ec2359e06ec949ba5c7b2d5b461c2eff912ad0.scope/kubelet.slice/kubelet-kubepods.slice/kubelet-kubepods-burstable.slice/kubelet-kubepods-burstable-podcb65326c_bd92_45db_9d1f_09b70e0b40ba.slice/cri-containerd-b63826b7015cd4399db883b566a11b2e7f28376ddc050564c91821aa8183019c.scope,task=java,pid=159068,uid=1000
2025-10-07T14:43:18.787611+00:00 tt-airbyte-prod kernel: Memory cgroup out of memory: Killed process 159068 (java) total-vm:414176396kB, anon-rss:94460kB, file-rss:23812kB, shmem-rss:145408kB, UID:1000 pgtables:888kB oom_score_adj:982
2025-10-07T14:43:18.796318+00:00 tt-airbyte-prod kernel: Tasks in /system.slice/docker-cb5adec3d0a1f9eec15c18d054ec2359e06ec949ba5c7b2d5b461c2eff912ad0.scope/kubelet.slice/kubelet-kubepods.slice/kubelet-kubepods-burstable.slice/kubelet-kubepods-burstable-podcb65326c_bd92_45db_9d1f_09b70e0b40ba.slice/cri-containerd-b63826b7015cd4399db883b566a11b2e7f28376ddc050564c91821aa8183019c.scope are going to be killed due to memory.oom.group set
2025-10-07T14:43:18.796354+00:00 tt-airbyte-prod kernel: Memory cgroup out of memory: Killed process 159038 (sh) total-vm:4624kB, anon-rss:256kB, file-rss:3116kB, shmem-rss:0kB, UID:1000 pgtables:44kB oom_score_adj:982
2025-10-07T14:43:18.806585+00:00 tt-airbyte-prod kernel: Memory cgroup out of memory: OOM victim 159066 (sleep) is already exiting. Skip killing the task
2025-10-07T14:43:18.806605+00:00 tt-airbyte-prod kernel: Memory cgroup out of memory: Killed process 159118 (C2 CompilerThre) total-vm:414176396kB, anon-rss:94460kB, file-rss:23812kB, shmem-rss:145408kB, UID:1000 pgtables:888kB oom_score_adj:982
2025-10-07T14:43:18.988567+00:00 tt-airbyte-prod systemd[1]: docker-cb5adec3d0a1f9eec15c18d054ec2359e06ec949ba5c7b2d5b461c2eff912ad0.scope: A process of this unit has been killed by the OOM killer.
root@airbyte-abctl-control-plane:/# kubectl -n airbyte-abctl get pods
NAME READY STATUS RESTARTS AGE
airbyte-abctl-bootloader 0/1 Completed 0 6m10s
airbyte-abctl-cron-5bb556d6dc-r7kgm 1/1 Running 0 9m22s
airbyte-abctl-server-7df5667689-b7g88 1/1 Running 0 37m
airbyte-abctl-temporal-54448c6c9f-4j67k 1/1 Running 0 9m22s
airbyte-abctl-worker-564864f964-hhrk4 1/1 Running 0 5m4s
airbyte-abctl-workload-api-server-57d67b4c55-8p298 1/1 Running 0 9m22s
airbyte-abctl-workload-launcher-5bbbdf7d77-f958m 1/1 Running 1 (90m ago) 91m
airbyte-db-0 1/1 Running 0 4h51m
…
n-databricks-check-daadf1b2-d799-49fa-8842-71e915274a62-0-valsg 1/2 OOMKilled 0 57skapa.ai
10/07/2025, 2:49 PMvalues.yaml or environment variables (e.g., JOB_MAIN_CONTAINER_MEMORY_LIMIT) does not always result in the expected resource allocation for all job types (check, discover, sync, etc.). Sometimes, only connection-level overrides work, and instance- or connector-level settings are ignored. This can cause pods to be scheduled with insufficient memory and get OOMKilled, as you are seeing with Databricks [Airbyte is ignoring JOB_MAIN_CONTAINER_MEMORY_REQUEST in .env](https://github.com/airbytehq/airbyte/issues/30814), [Cannot use Airbyte on Kubernetes due to OOM when setting up connector](https://github.com/airbytehq/airbyte/issues/48816). 2. Multiple Environment Variables Required - Airbyte uses different environment variables for different job types. If you only set the generic JOB_MAIN_CONTAINER_MEMORY_LIMIT, it may not apply to check/discover/spec jobs. You need to set all of the following in your values.yaml or as environment variables: JOB_MAIN_CONTAINER_MEMORY_LIMIT CHECK_JOB_MAIN_CONTAINER_MEMORY_LIMIT DISCOVER_JOB_MAIN_CONTAINER_MEMORY_LIMIT SPEC_JOB_MAIN_CONTAINER_MEMORY_LIMIT And their corresponding *_REQUEST and CPU variables as well. This was a key finding from users who resolved similar OOM issues [Cannot use Airbyte on Kubernetes due to OOM when setting up connector](https://github.com/airbytehq/airbyte/issues/48816). 3. Java Heap and Kubernetes Memory Limits - There are known issues where the Java process inside the pod does not correctly detect the Kubernetes memory limit, especially on newer Linux kernels (6.12+). In these cases, Java may allocate a heap much larger than the pod's limit, leading to OOM kills even if the pod's resource limits are set correctly. This is due to changes in how cgroups are handled in the kernel and how OpenJDK reads them [OOM in replication jobs on newer redhat-based Linux kernels](https://github.com/airbytehq/airbyte/issues/61698). 4. Debugging - You can confirm the resource settings being applied by checking the job logs in the Airbyte UI. The logs will show the actual resource requests and limits for each container as the job is launched. This can help you verify if your settings are being picked up [Configuring Connector Resources - Debugging](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#debugging). ### What You Should Do - Set All Relevant Resource Variables: In your values.yaml or environment, explicitly set all the job-type-specific memory and CPU variables, for example: yaml global: env_vars: JOB_MAIN_CONTAINER_MEMORY_LIMIT: 4Gi JOB_MAIN_CONTAINER_MEMORY_REQUEST: 2Gi CHECK_JOB_MAIN_CONTAINER_MEMORY_LIMIT: 2Gi CHECK_JOB_MAIN_CONTAINER_MEMORY_REQUEST: 1Gi DISCOVER_JOB_MAIN_CONTAINER_MEMORY_LIMIT: 2Gi DISCOVER_JOB_MAIN_CONTAINER_MEMORY_REQUEST: 1Gi SPEC_JOB_MAIN_CONTAINER_MEMORY_LIMIT: 2Gi SPEC_JOB_MAIN_CONTAINER_MEMORY_REQUEST: 1Gi # ...and their CPU equivalents This ensures all job types (including the "check" job for your Databricks connection) get the correct resources [Cannot use Airbyte on Kubernetes due to OOM when setting up connector](https://github.com/airbytehq/airbyte/issues/48816). - Check Java Heap Settings and Kernel Version: If you are running on a newer Linux kernel (6.12+), Java may not respect the pod's memory limit. Consider downgrading your kernel as a temporary workaround, or monitor the Airbyte GitHub for a fix or recommended JVM flags [OOM in replication jobs on newer redhat-based Linux kernels](https://github.com/airbytehq/airbyte/issues/61698). - Verify in Logs: After making changes, trigger a new connection test and check the job logs in the Airbyte UI to confirm the correct resource limits are being applied [Configuring Connector Resources - Debugging](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#debugging). ### Summary Your OOMKilled issue is likely due to either: - Not all relevant resource environment variables being set for the "check" job, or - A Java/Kubernetes cgroup detection issue on newer kernels. Set all the job-type-specific resource variables, and if the problem persists and you are on a new kernel, consider the kernel downgrade workaround. If you need more detailed help, please provide your values.yaml and kernel version. If you need further clarification, let me know!