open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
2.92k stars 2.28k forks source link

filelog receiver: the memory hit the boundary and cause massive event loss #4850

Closed polarG closed 1 year ago

polarG commented 3 years ago

Describe the bug A clear and concise description of what the bug is. component with this issue: filelog receiver. When use 3 filelog receivers in the use case, the otel will show error message "the memory hit the boundary and cause massive event loss". But if only 1 filelog receiver is used, no error come up.

Steps to reproduce If possible, provide a recipe for reproducing the error. Data ingestion:

Test setup: otel agent ---> otel agent (forwarder) ----> Splunk

What did you expect to see? A clear and concise description of what you expected to see. No error messages.

What did you see instead? A clear and concise description of what you saw instead. Otel log error message "the memory hit the boundary and cause massive event loss".

What version did you use? Version: (e.g., v0.4.0, 1eb551b, etc)

What config did you use? Config: (e.g. the yaml config file) receivers: filelog: include:

processors: batch:

memory_limiter: ballast_size_mib: ${SPLUNK_BALLAST_SIZE_MIB} check_interval: 2s limit_mib: ${SPLUNK_MEMORY_LIMIT_MIB}

exporters: otlphttp: endpoint: "http://:55681" insecure: true compression: none/gzip

splunk_hec: token: "${SPLUNK_HEC_TOKEN}" endpoint: "${SPLUNK_HEC_URL}" source: "metrics" sourcetype: "otel_hostmetrics"

service: pipelines: logs: receivers:

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

Additional context Add any other context about the problem here. @tigrannajaryan

tigrannajaryan commented 3 years ago

@polarG can you please attach the full Collector log?

tigrannajaryan commented 3 years ago

@djaglowski any ideas on what may be causing this? I can't find the error message anywhere in our code base.

djaglowski commented 3 years ago

I'm not aware of any obvious cause off the top of my head. I'm OOO until Thursday, but will look into it then.

djaglowski commented 3 years ago

@polarG Can you attach the collector log? I also cannot find this error message, or one like it, anywhere in the code base. I'll need more context to look into this further.

djaglowski commented 1 year ago

I have not observed this issue or heard of it again from anyone else. Closing this but please open a new issue if necessary.