Ad Widget

Collapse

1.6 zabbix_server and swap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mfburgo
    Junior Member
    • Apr 2007
    • 12

    #1

    1.6 zabbix_server and swap

    Upgraded to 1.6 the other day and ever since the zabbix-server process will run fin for a while but then fills all swap on the machine.

    2 gig memory
    2 gig swap

    1.4.6 was running with 2 gig memory
    1 gig swap with out problem

    any ideas

    ubuntu 8.04 server mysql 5
  • ZhidkovAN
    Junior Member
    • Dec 2006
    • 16

    #2
    Solution in post http://www.zabbix.com/forum/showthread.php?t=10566

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      I confirm that there is a memory leak in ZABBIX 1.6 server code. Follow the link above for the absolutely correct fix.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • mfburgo
        Junior Member
        • Apr 2007
        • 12

        #4
        Thank You I did not find that in the search.....

        Comment

        • 753713
          Senior Member
          • Apr 2006
          • 137

          #5
          Hi Alexei,

          my server allways crashes after 24 hour. The server fills all swap on the machine. With Zabbix 1.4.6 the server runs without problems.

          see log:

          top - 22:46:20 up 1 day, 2:49, 1 user, load average: 15.84, 19.92, 16.00
          Tasks: 117 total, 10 running, 107 sleeping, 0 stopped, 0 zombie
          Cpu(s): 0.1%us, 99.3%sy, 0.0%ni, 0.0%id, 0.6%wa, 0.0%hi, 0.1%si, 0.0%st
          Mem: 3993240k total, 3970976k used, 22264k free, 236k buffers
          Swap: 5863684k total, 5863684k used, 0k free, 12440k cached

          PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
          20010 mysql 20 0 551m 253m 1656 S 119 6.5 1:00.81 mysqld
          200 root 15 -5 0 0 0 R 77 0.0 10:34.30 kswapd0
          4432 root 20 0 50436 324 160 R 38 0.0 2:22.53 snmptrapd
          20068 www-data 20 0 171m 1696 500 R 35 0.0 0:05.34 apache2
          20067 www-data 20 0 174m 2904 536 D 34 0.1 0:07.19 apache2
          20065 www-data 20 0 126m 3088 392 R 31 0.1 0:08.38 apache2
          4452 zabbix 25 5 17828 184 120 R 16 0.0 2:09.10 zabbix_agentd
          4457 zabbix 25 5 17836 232 136 R 13 0.0 0:48.73 zabbix_agentd
          7514 zabbix 25 5 36772 384 172 R 12 0.0 0:21.44 zabbix_server
          7490 zabbix 25 5 890m 224m 348 R 11 5.8 2:12.31 zabbix_server
          7496 zabbix 25 5 890m 227m 308 R 11 5.8 2:41.36 zabbix_server
          7510 zabbix 25 5 38844 400 200 S 3 0.0 0:50.14 zabbix_server
          3259 root 20 0 18988 640 400 R 1 0.0 4:11.17 top
          7505 zabbix 25 5 36956 648 304 S 1 0.0 0:41.44 zabbix_server
          4430 snmp 20 0 49476 1524 240 S 0 0.0 2:59.80 snmpd


          How long will it take to get a solution for this problem, because I have to downgrade next week to version 1.4.6.

          regards

          Christian
          ______________________________
          Version : 2.0.x
          Server OS: Ubuntu 12.04
          Zabbix Servers: 12
          Monitored Windows Server: ~ 1000
          ______________________________

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            Originally posted by 753713
            How long will it take to get a solution for this problem, because I have to downgrade next week to version 1.4.6.
            It depends on speed of your Internet connection. Read carefully, solution is already here. Just download it!
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • r3dn3ck
              Member
              • Jul 2008
              • 43

              #7
              I'm having a memory leak issue currently but I use MySQL and I dont' think the fix applies to my case (correct me if I'm wrong). I have a 3 node proxy configuration and I only see the problem on the central zabbix_server. The proxy servers seem to run just fine without undue memory usage.

              I have as my central node a dual quad-core 2.3ghz machine, with 4GB RAM and 5GB swap. The server runs just fine but consistently fills up the memory and swap within 24 hours. This is an untenable situation as I'm monitoring over 1400 servers and restarting the zabbix_server daemon to clear the memory every 20 hours isn't going to let me go-live with Zabbix.

              Any thoughts?

              Comment

              • r3dn3ck
                Member
                • Jul 2008
                • 43

                #8
                So, to answer my own question. Looks like yes. The fix does apply to MySQL too. Made the change, recompiled and it seems like it's doing ok so far.

                Thanks all. I'll pop back in if the problem continues.

                Comment

                Working...