Ad Widget

Collapse

How to tell if Zabbix has memory leak?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #31
    Maybe there should be a NET-SNMP version check like there is for php when running throught the config install. Just a thought.

    Comment

    • nibb
      Member
      • Oct 2008
      • 78

      #32
      Originally posted by Palmertree
      I have found why my SNMP pollers were leaking memory. I wanted to share this with everyone because this might be a problem for a lot of people and it took me a few days to figure this out. The problem is not in the Zabbix code but the NET-SNMP libraries. There is a major memory leak in the libraries for "NET-SNMP Version 5.4". I was able to determine this by running "Valgrind" and saw the "varbinds" leaking like crazy. NET_SNMP version 5.4 is used in most yum installs. Net-SNMP Version 5.4.1 fixes these memory leaks. I had to down load the newest version and compile it. After installing version 5.4.1 of NET-SNMP you must recompile Zabbix Pre 1.4.3 (do not use 1.4.2, has a memory leak in the trappers).

      NET-SNMP Release Notes
      Release Name: 5.4.1
      Notes:
      *5.4.1*

      snmplib:
      - [BUG 1619827]: link libraries against needed external libraries
      - [PATCH 1616912]: fix memory leak in UDP transport code
      - [PATCH 1592706]: fix memory leak when cloning varbinds
      Do you think this applied to x64 too?

      It seems yum installs even a lower version:
      Installed Packages
      net-snmp.x86_64 1:5.3.1-24.el5_2.2 installed

      Comment

      • bioposi
        Junior Member
        • Mar 2009
        • 7

        #33
        net-snmp stil leaking ...

        Sorry to fire again an old issue but ...

        I have just set up a fresh Zabbix-1.6.2 installation that works very fine as long as the net-snmp support is not embedded with it.
        I have firstly compiled net-snmp-5.4.2.1 on my Redhat Enterprise Linux 5.3 . All the compilation went fine. Then, I have configured Zabbix-1.6.2 with the --with-net-snmp configure switch, compiled it, ran it and ... the server eat my memory like hell.
        More than 3GB eated in less than 5 hours with 45 snmp-enabled pollers. I stopped it before it consumes the 16GB of swap ...

        I have verified that the leakage was really in the net-snmp distribution by compiling Zabbix without it support and yes, the leakage went gone.

        Anyone knows a distribution of net-snmp that fits correctly with Zabbix without consuming the memory? or maybe, the correct switches to configure/compile net-snmp-5.4.2.1 to avoid the memory consumption ?

        Thanks in advance ;-)
        A nearly-happy Zabbix fresh adopter.

        Comment

        • tchjts1
          Senior Member
          • May 2008
          • 1605

          #34
          Check this thread -

          Comment

          Working...