Skip to content

datadog-lib-java-init container dies with OOMKilled  #1519

@jwtrim

Description

@jwtrim

Describe what happened:

Java cronjob fails due to the datadog-lib-java-init container terminating with OOMKilled.

Describe what you expected:

The DD init container does not terminate with OOMKilled.

Steps to reproduce the issue:

The issue does seem to be intermittent, but adding auto-instrumentation on a Java cronjob and continually triggering the job does eventually reproduce the issue.

│ Init Containers:                                                                                                                                                │
│   datadog-lib-java-init:                                                                                                                                        │
│     Container ID:  containerd://e638d5686e7d5a4ddf5ed2ecd4ddec6c84ad875a8dcd34d1ac068a8f4ab991b4                                                                │
│     Image:         gcr.io/datadoghq/dd-lib-java-init:v1.38.1                                                                                                    │
│     Image ID:      gcr.io/datadoghq/dd-lib-java-init@sha256:789df6113ee8afaccc4b8a397a4e8dee934a4867fe95b551ec632ae859e00ddd                                    │
│     Port:          <none>                                                                                                                                       │
│     Host Port:     <none>                                                                                                                                       │
│     Command:                                                                                                                                                    │
│       sh                                                                                                                                                        │
│       copy-lib.sh                                                                                                                                               │
│       /datadog-lib                                                                                                                                              │
│     State:          Terminated                                                                                                                                  │
│       Reason:       OOMKilled                                                                                                                                   │
│       Exit Code:    137                                                                                                                                         │
│       Started:      Thu, 05 Sep 2024 11:15:01 -0400                                                                                                             │
│       Finished:     Thu, 05 Sep 2024 11:15:04 -0400                                                                                                             │
│     Ready:          False                                                                                                                                       │
│     Restart Count:  0                                                                                                                                           │
│     Limits:                                                                                                                                                     │
│       cpu:     50m                                                                                                                                              │
│       memory:  20971520                                                                                                                                         │
│     Requests:                                                                                                                                                   │
│       cpu:     50m                                                                                                                                              │
│       memory:  20971520

Additional environment details (Operating System, Cloud provider, etc):

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/agentissue in Datadog-Agent (not a chart issue)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions