Skip to content

Commit e53ce46

Browse files
18738 FIX OTel: Fix collector memorylimit values
The memory_limiter processor expects limit_mib and spike_limit_mib to be in Mebibytes. Currently, we are passing raw byte values, causing the collector to set limits that are $1024^2$ times higher than intended. This PR adds a conversion constant to ensure values are correctly scaled to MiB. CMK-28868 Change-Id: I3caa9855b744276ff70622681c46cbb89fd12165
1 parent 9b81931 commit e53ce46

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.werks/18738.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[//]: # (werk v2)
2+
# OTel: Fix collector memorylimit values
3+
4+
key | value
5+
---------- | ---
6+
date | 2026-01-13T15:53:45+00:00
7+
version | 2.6.0b1
8+
class | fix
9+
edition | cce
10+
component | checks
11+
level | 1
12+
compatible | yes
13+
14+
The `memory_limiter` processor expects the parameters `limit_mib` and `spike_limit_mib` to be specified in **Mebibytes (MiB)**.
15+
16+
Currently, raw byte values are being passed instead.
17+
This causes the collector to set memory limits that are 1,048,576 times higher than intended, which may prevent effective memory limiting and potentially lead to excessive memory usage by the collector.
18+
19+
This update introduces a conversion constant to correctly scale the input values to MiB.
20+
As a result, memory limits will now be enforced as expected.
21+
22+
23+
### Action Required
24+
25+
To ensure these corrected limits are applied to your environment, affected users should perform a **minor "dummy" change** (such as adding a comment) to the OpenTelemetry configuration.
26+
This will trigger a refresh of the YAML configuration and activate the updated scaling logic.

0 commit comments

Comments
 (0)