Giter VIP home page Giter VIP logo

Comments (3)

eero-t avatar eero-t commented on June 4, 2024

Run COllectD 5.11 on Centos7 and valgrind
collectd-wr5.log

All leakage in that Valgrind log is from Bash, not collectd?

from collectd.

mrunge avatar mrunge commented on June 4, 2024

thank you for checking @eero-t . Yes, to me it looks like the leaks were from bash.

from collectd.

eero-t avatar eero-t commented on June 4, 2024

While it's possible that collectd process had increased memory usage when POD running collectd gets killed due to OOM, it's impossible to say either way, as the attached file was about Bash.

There was also no log of the actual OOM event; was it e.g. whole system OOM, or just result of collectd POD spec specifying too low memory limits for such a long running process. Kernel OOM info does not state whether something leaks, it just states how much memory processes used, and which one of them was killed as result of the OOM situation. Unless processes are prioritized differently, killed process is the one taking most memory in given cgroup.

And even if collectd process memory usage would increase over time, it's not necessarily a leak, or from collectd itself. It could be from a system library, and/or due to data it handles just increasing over time for some valid reason.

PS. Small leaks are very hard to catch, unless they happen right from the beginning (so that something like Valgrind can be used to catch them). Most memory tools have such large overheads that you cannot run them in production, you need special tools to track them [1]. It may be easier just to increase memory limits a bit and/or restart processes at suitable intervals.

[1] Used in Maemo/MeeGo: https://github.com/maemo-tools-old/functracer

(Nowadays similar functionality could probably be written on top of kernel uprobes.)

from collectd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.