Ad Widget

Collapse

zbx_malloc: out of memory 1.8.6 psql 9.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hahnium
    Junior Member
    Zabbix Certified Specialist
    • Feb 2011
    • 13

    #1

    zbx_malloc: out of memory 1.8.6 psql 9.0

    Hey! Im a big fan of zabbix, but now I seem to have a problem i cant figure out by myself. Im not able to start the server. zabbix_server.log:
    15295:20110518:082834.474 Starting Zabbix Server. Zabbix 1.8.6rc1 (revision {ZABBIX_REVISION}).
    15295:20110518:082834.475 ****** Enabled features ******
    15295:20110518:082834.475 SNMP monitoring: YES
    15295:20110518:082834.475 IPMI monitoring: NO
    15295:20110518:082834.475 WEB monitoring: YES
    15295:20110518:082834.475 Jabber notifications: NO
    15295:20110518:082834.475 Ez Texting notifications: YES
    15295:20110518:082834.475 ODBC: NO
    15295:20110518:082834.475 SSH2 support: NO
    15295:20110518:082834.475 IPv6 support: NO
    15295:20110518:082834.475 ******************************
    15298:20110518:082834.489 server #1 started [configuration syncer]
    15301:20110518:082834.524 server #3 started [poller]
    15302:20110518:082834.526 server #4 started [poller]
    15299:20110518:082834.528 server #2 started [poller]
    15309:20110518:082834.555 server #8 started [trapper]
    15306:20110518:082834.558 server #6 started [poller]
    15312:20110518:082834.568 server #9 started [trapper]
    15313:20110518:082834.568 server #10 started [trapper]
    15315:20110518:082834.569 server #11 started [trapper]
    15316:20110518:082834.571 server #12 started [trapper]
    15318:20110518:082834.572 server #13 started [icmp pinger]
    15319:20110518:082834.572 server #14 started [alerter]
    15321:20110518:082834.573 server #15 started [housekeeper]
    15321:20110518:082834.573 Executing housekeeper
    15322:20110518:082834.573 server #16 started [timer]
    15323:20110518:082834.574 server #17 started [http poller]
    15303:20110518:082834.574 server #5 started [poller]
    15326:20110518:082834.576 server #20 started [history syncer]
    15327:20110518:082834.577 server #21 started [history syncer]
    15328:20110518:082834.577 server #22 started [history syncer]
    15329:20110518:082834.578 server #23 started [escalator]
    15330:20110518:082834.578 server #24 started [proxy poller]
    15331:20110518:082834.579 server #25 started [self-monitoring]
    15295:20110518:082834.579 server #0 started [db watchdog]
    15308:20110518:082834.583 server #7 started [unreachable poller]
    15324:20110518:082834.608 server #18 started [discoverer]
    15325:20110518:082834.609 server #19 started [history syncer]
    15319:20110518:082834.666 [file:str.c,line:3159] zbx_malloc: out of memory. Requested 4294967295 bytes.
    15295:20110518:082834.671 One child process died (PID:15319,exitcode/signal:255). Exiting ...
    15295:20110518:082836.702 Syncing history data...
    15295:20110518:082836.702 Syncing history data... done.
    15295:20110518:082836.702 Syncing trends data...
    15295:20110518:082836.702 Syncing trends data... done.
    15295:20110518:082836.702 Zabbix Server stopped. Zabbix 1.8.6rc1 (revision {ZABBIX_REVISION}).

    I've already checked, and tried, previous suggestions and i do have enough free memory.

    Do any of you have some suggestions or ideas?

    All help appreciated!

    Thanks!
    Last edited by hahnium; 18-05-2011, 08:29.
  • hahnium
    Junior Member
    Zabbix Certified Specialist
    • Feb 2011
    • 13

    #2
    After changing line 3159 in /1.8/src/libs/zbxcommon/str.c to a low number, and then reset to the original code, im able to start the server for a short periode of time.(5-10sec).

    Code:
    Line 3137:char *str_linefeed(const char *src, size_t maxline, const char *delim)
    Line 3138:{
    Line 3139: size_t src_size; /* input length */
    Line 3140: size_t dst_size; /* output length */
    Line 3141: size_t delim_size; /* delimiter length */
    Line 3142: int feeds; /* number of feeds */
    Line 3143: size_t left; /* what's left after last feed */
    Line 3144: char *dst = NULL; /* output with linefeeds */
    Line 3145:
    Line 3146: const char *p_src; /* working pointer to input */
    Line 3147: char *p_dst; /* working pointer to output */
    Line 3148:
    Line 3149: if (NULL == delim)
    Line 3150: delim = "\n";
    Line 3151:
    Line 3152: src_size = strlen(src);
    Line 3153: delim_size = strlen(delim);
    Line 3154: feeds = src_size / maxline - (0 != src_size % maxline ? 0 : 1); /* we don't want to feed the last line */
    Line 3155: left = src_size - feeds * maxline;
    Line 3156: dst_size = src_size + feeds * delim_size + 1;
    Line 3157:
    Line 3158: /* allocate memory for output */
    Line 3159: dst = zbx_malloc(dst,dst_size);
    /code

    The server stops running on line 3159 as mentioned above.

    I really need some help folks!

    All help appreciated!

    Thanks!

    Comment

    • hahnium
      Junior Member
      Zabbix Certified Specialist
      • Feb 2011
      • 13

      #3
      After downgrading to 1.8.5 everything seems to be running fine!

      Comment

      Working...