Collector pod is OOMKilled under load
IntermediateTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer
Likely causes → No memory_limiter processor, large batches, or tail sampling holding many traces in memory.
Diagnose → kubectl describe pod (OOMKilled), otelcol_process_memory_rss.
Fix → Put memory_limiter first in every pipeline:
processors:
memory_limiter:
check_interval: 1s
limit_percentage: 80
spike_limit_percentage: 20
batch: {}
service:
pipelines:
traces:
processors: [memory_limiter, batch]
Set GOMEMLIMIT to ~80% of the container limit.
Prevent → Load-test collectors and alert on refused spans.
More on Tracing, OpenTelemetry and CloudWatch
Traces show only the frontend span; downstream services start new tracesIntermediateTraces break at the API gateway / ingress controllerIntermediateNo traces at all arrive; the app logs `Failed to export spans. The request could not be executed. Full error message: Failed to connect to localhost/127.0.0.1:4317`BeginnerSDK error `Unimplemented` / `404 Not Found` when exporting to the collectorIntermediateOTel collector logs `Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "traces", "name": "otlp", "error": "rpc error: code = Unavailable desc = connection error"}`IntermediateCollector logs `Dropping data because sending_queue is full`Advanced