No limit on collectd memory cache

Description

Running TrueNAS-12.0-U8.1 with a remote graphite server configured. It's been working for a long time but I recently brought the graphite server down for an extended time.

While the graphite server has been down I've noticed the "Services" memory consumption of TrueNAS kept increasing and increasing. I confirmed with htop that it's collectd using more and more memory.

Collectd was up to 70% of system memory when I brought the graphite server online. Immediately after I brought graphite back online collectd started flushing it's cache. I watched it slowly flush all the way back down to ~1.5%.

I'm assuming an in memory cache is expected behavior but there should be a more sane limit to its size. It was up to 70% of my system's 32GB. I don't know if it would have caused problems when it got to 100% or if a limit would have kicked in.

Apologies if a high impact is inappropriate here but this felt like a memory leak to me.

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk July 14, 2022 at 10:37 AM

Bug Clerk July 14, 2022 at 10:37 AM

Bug Clerk July 14, 2022 at 10:33 AM

Michelle Johnson July 6, 2022 at 4:37 PM

Thank you for your submission,

This issue is in the queue for review. An Engineering representative will update with further details or questions in the near future. If this ticket is a duplicate to one already on file Engineering will close this ticket to focus their energy on the original or first report of this issue.

Michelle Johnson July 6, 2022 at 12:58 PM

Thank you for your report, !

Please provide a debug file. To generate a debug file on TrueNAS CORE, log in to the TrueNAS web interface, go to System > Advanced, then click Save Debug and wait for the file to download to your local system.

To attach the debug to this ticket:

Select the triple dots at the top of the right side panel, then Actions Menu. In the dialog that opens, select Attach to display a file explorer window where you can select and upload your file. After it is provided, if not already done, we mark the tickets submitted as Private to protect your information.

Complete

Details

Assignee

Reporter

Labels

Impact

High

Original estimate

Time remaining

0m

Components

Affects versions

Priority

Katalon Platform

Created July 2, 2022 at 3:17 PM
Updated February 27, 2025 at 10:31 PM
Resolved July 14, 2022 at 10:40 AM