Ad Widget

Collapse

[1.4] zbx_malloc: out of memory. requested '3084308801' bytes.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbix_es
    Senior Member
    • Apr 2007
    • 153

    #16
    It's related with web monitoring.

    I have deleted all records of DB related with web monitoring and zabbix_server does not die, so this confirm that this issue is related with web monitoring.

    Comment

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

      #17
      Please, all, re-check that the patch was applied and server binaries were recompiled! We cannot reproduce this problem on our test server.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • alexandro
        Junior Member
        • Jun 2007
        • 7

        #18
        My zabbix die with patch even when there are no web-scenaries at all and when present one http or https check with correct url

        I can give access to server with this problem

        Comment

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

          #19
          I would be interested in an access to your system very much. Please could you send connection details (SSH) to a l e x @ z a b b i x . c o m
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

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

            #20
            Thank you for providing access to your system! Finally we found what was wrong.

            In /src/libs/zbxdbhigh/db.c, function DBdyn_escape_string, add:

            int str_esc_len=0;

            Please report if this helped.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • alexandro
              Junior Member
              • Jun 2007
              • 7

              #21
              Yes, now zabbix doesn't die and web scenaries work.

              Comment

              • knarfS
                Junior Member
                • Apr 2007
                • 4

                #22
                Thanks Alexei, this patch works for us.

                Comment

                • Eugene
                  Member
                  • Feb 2006
                  • 57

                  #23
                  Thank's for all.

                  You can use last patch for 'out of memory'
                  Attached Files

                  Comment

                  • angch
                    Junior Member
                    • Jun 2007
                    • 4

                    #24
                    -Wall please

                    You really ought to add "-Wall" to CFLAGS, and pay attention to the warnings emitted. That way, this bug would have been caught much earlier.

                    Another example of a possible bug is in 1.4's src/libs/zbxdbhigh/hosts.c line 3235.

                    It currently reads
                    Code:
                    if( (graph_data == DBfetch(db_graphs)) )
                    when you probably meant it to be
                    Code:
                    if( (graph_data = DBfetch(db_graphs)) )
                    Line 1332's
                    Code:
                    applicationid = applicationid_new;
                    *might* be using an uninitialized applicationid_new variable as well.

                    Comment

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

                      #25
                      I see no problems here. By the way, -Wall does not show warnings about uninitialized variables, at least under gcc 4.1.3. Use -Wuninitialized instead!
                      Alexei Vladishev
                      Creator of Zabbix, Product manager
                      New York | Tokyo | Riga
                      My Twitter

                      Comment

                      Working...