Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1545345

Summary: fluentd memory use grows until OOM with glibc malloc
Product: Red Hat Enterprise Linux 8 Reporter: Rich Megginson <rmeggins>
Component: glibcAssignee: glibc team <glibc-bugzilla>
Status: CLOSED WONTFIX QA Contact: qe-baseos-tools-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: ashankar, codonell, dj, fweimer, mnewsome, myllynen, nkinder, pfrankli, pportant, sipoyare, woodard
Target Milestone: rcKeywords: Tracking, Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-28 07:28:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rich Megginson 2018-02-14 17:17:52 UTC
Description of problem:
When using fluentd (0.12.x using ruby 2.0 in RHEL7), the memory usage (as measured by ps h -p $fluentdpid -o rss) grows steadily until it runs out of memory and crashes or is OOMkilled.  This seems mostly exacerbated when using fluentd as a listener (using the secure_forward protocol) of other fluentd collectors.

Version-Release number of selected component (if applicable):
RHEL 7 - ruby 2.0 - fluentd 0.12.x

How reproducible:
Every time

Steps to Reproduce:
1. Deploy OpenShift + logging + mux component
2. Put a load on fluentd e.g. logger -f file_with_many_lines
3. Measure rss of the fluentd mux

Actual results:


Expected results:
I would expect the memory usage to eventually plateau instead of growing constantly.

Additional info:
The mux case is the easiest and fastest way to show the memory growth.

If using OCP 3.7 or later, the fluentd is bundled with jemalloc - set the environment variable USE_JEMALLOC=false to disable jemalloc and use glibc malloc.

Comment 2 Carlos O'Donell 2018-02-14 17:30:42 UTC
Thanks Rich, we will work with you on this issue to see what we can determine about fluentd's particular use case that doesn't lead to stable memory usage over time.

Comment 5 Carlos O'Donell 2020-04-28 16:52:22 UTC
I'm moving this bug to RHEL8, but that shouldn't matter here, this is a tracking bug for the purposes of reviewing the workload issues with malloc.

Comment 13 RHEL Program Management 2022-04-28 07:28:24 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.