Built-in statistics about memory consumption by item type for Agent2 (GO based)

    • Type: Change Request
    • Resolution: Unresolved
    • Priority: Critical
    • None
    • Affects Version/s: 7.0.22, 7.4.6, 8.0.0alpha2 (master)
    • Component/s: Agent (G), Agent2 (G)
    • None

      Please provide a way to dump/print memory consumption statistics by item type.

      Currently you need recompile Agent2 to add some debug like pprof to find affected items, this means recompilation and re-installation of the Agent2 which is not always possible in a production environment while it's not possible to reproduce in a dev/qa env. 

      Other solution is to disable item types step by step and it's not efficient. 

      Looks like pprof patch solution implemented under ZBX-26276 and ZBX-25060 can be adopted to be added on a regular basis in some or another way for go-based Agent.  

      This will reduce time needed to understand memory hungry checks if any leak will happen.  

      Regards,

      Edgar

            Assignee:
            Leonards Survilo
            Reporter:
            Edgar Akhmetshin
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: