After an update from 11.20.1 to 11.25.1 after a few days asterisk crashes and then restarts itself.
In the full log I see this:
[2017-02-03 17:27:11] ERROR[15329] /usr/src/asterisk-11.25.1/include/asterisk/utils.h: Memory Allocation Failure in function ast_str_create at line 435 of /usr/src/aste
risk-11.25.1/include/asterisk/strings.h
[2017-02-03 17:27:11] WARNING[15329] chan_sip.c: sip_xmit of 0x7f49dc3e8360 (len 139955200328584) to 141.135.151.77:12384 returned -2: Cannot allocate memory
[2017-02-03 17:27:11] ERROR[15329] chan_sip.c: Serious Network Trouble; __sip_xmit returns error for pkt data
[2017-02-03 17:27:15] Asterisk 11.25.1 built by root @ voip01.lentrix.eu on a x86_64 running Linux on 2017-01-26 18:32:33 UTC
[Feb 3 17:27:15] VERBOSE[8444] config.c: == Parsing ‘/etc/asterisk/logger_logfiles_custom.conf’: Found
[2017-02-03 17:27:15] VERBOSE[8444] config.c: == Parsing ‘/etc/asterisk/asterisk.conf’: Found
Memory usage is constantly monitored on our server and there seems to be enough free memory all the time.
The I/O failures suggested that the kernel was out of memory, but that is not consistent with the strangely high free memory (free memory should drop until it reaches significantly less than 10%).
If it is a limit on Asterisk itself, I would look at your ulimit settings.