Skip to content

splunkhec receiver memory leak #34886

@clheikes

Description

@clheikes

Component(s)

receiver/splunkhec

What happened?

Description

We've uncovered what appears to be a memory leak in the splunkhec receiver that surfaced around version 0.102.0. We run the the receiver in both a metric and log pipeline. We are not sending logs using hec yet the collector is holding 2gb of heap under (*ObsReport).StartLogsOp (obsreport.go:L#95).

Steps to Reproduce

splunkhec receiver in logs and metrics pipeline

Expected Result

Memory remains stable

Actual Result

Memory grows until we trigger the memory limiter then the collector gc's

35C08CF1-ECDD-4999-AFE6-21BEA453619A_1_105_c

49D534B1-3EF8-4949-B671-7B4C66E8E1E7

Collector version

0.106.1

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

When we remove the splunhecreceiver from the logs pipeline the memory is stable. At the moment we only have applications sending metrics to the hec receiver in the impacted clusters.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions