Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-4760

Zabbix agent can not allocate memory on OpenVZ VPS

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 1.8.10
    • Agent (G)
    • Centos 5.6 OpenVZ VPS; Postgresql 9.1 Server; everytihing works on Centos 5.6 Openvz ovzkernel 2.6.18-274.7.1.el5.028stab095.1

      Hello,
      After upgrading to zabbix 1.8.10 I`ve got such an error:
      12093:20120313:120423.226 cannot allocate shared memory of size 1401072: [28] No space left on device
      12093:20120313:120423.226 cannot allocate shared memory for collector

      I'm running Centos 5.6 on OpenVZ VPS;
      Zabbix config is simple, only Server specified;
      /proc/sys/kernel/shmmax is 13884901888;
      free gives:
      free
      total used free shared buffers cached
      Mem: 18432072 5961356 12470716 0 0 0
      [/CODE]
      After starting zabbix I've checked ipcs:

      ipcs

      ------ Shared Memory Segments --------
      key shmid owner perms bytes nattch status
      0x0052e2c1 262145 postgres 600 3601301504 140

      ------ Semaphore Arrays --------
      key semid owner perms nsems
      0x7a1741a1 9699328 zabbix 600 9
      0x0052e2c1 6684673 postgres 600 17
      0x0052e2c2 6717442 postgres 600 17
      0x0052e2c3 6750211 postgres 600 17
      0x0052e2c4 6782980 postgres 600 17
      0x0052e2c5 6815749 postgres 600 17
      0x0052e2c6 6848518 postgres 600 17
      0x0052e2c7 6881287 postgres 600 17
      0x0052e2c8 6914056 postgres 600 17
      0x0052e2c9 6946825 postgres 600 17
      0x0052e2ca 6979594 postgres 600 17
      0x0052e2cb 7012363 postgres 600 17
      0x0052e2cc 7045132 postgres 600 17
      0x0052e2cd 7077901 postgres 600 17
      0x0052e2ce 7110670 postgres 600 17
      0x0052e2cf 7143439 postgres 600 17
      0x0052e2d0 7176208 postgres 600 17
      0x0052e2d1 7208977 postgres 600 17
      0x0052e2d2 7241746 postgres 600 17
      0x0052e2d3 7274515 postgres 600 17
      0x0052e2d4 7307284 postgres 600 17
      0x0052e2d5 7340053 postgres 600 17
      0x0052e2d6 7372822 postgres 600 17
      0x0052e2d7 7405591 postgres 600 17
      0x0052e2d8 7438360 postgres 600 17
      0x0052e2d9 7471129 postgres 600 17
      0x0052e2da 7503898 postgres 600 17
      0x0052e2db 7536667 postgres 600 17
      0x0052e2dc 7569436 postgres 600 17
      0x0052e2dd 7602205 postgres 600 17

      Tried to ipcrm -s 9699328 and restarting zabbix, but not helped;

      Tried increasing shmmax twice, not helped;

      Wired thing, on the hardware node after zabbix start in user_beancounter (vps) increases shmpages failcounts;

      Tried increasing shmpages 4 times for the vps, not helped;

      Attached strace log

            Unassigned Unassigned
            lovesa Aleks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: