Thursday, January 5, 2012

Asterisk crashes after out of memory

My asterisk server crashes after severeal days with a out of memory problem.
For some day it works fine, then without a cause the server crashes.

Till now i have no idea why. Before the system halted, the oom killer starts to free memory,
but it dont work correctly.

Here a part of the log:

Dec 30 14:59:48 iptam kernel: 12195 pages shared
Dec 30 14:59:48 iptam kernel: 0 pages swap cached
Dec 30 14:59:48 iptam kernel: 2 pages dirty
Dec 30 14:59:48 iptam kernel: 0 pages writeback
Dec 30 14:59:48 iptam kernel: 2204 pages mapped
Dec 30 14:59:48 iptam kernel: 216133 pages slab
Dec 30 14:59:48 iptam kernel: 143 pages pagetables
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 7330 (apache2) score 876 or a child
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 7330 (apache2) score 876 or a child
Dec 30 14:59:48 iptam kernel: Killed process 7330 (apache2)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 7332 (apache2) score 876 or a child
Dec 30 14:59:48 iptam kernel: Killed process 7332 (apache2)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 7076 (qmgr) score 303 or a child
Dec 30 14:59:48 iptam kernel: Killed process 7076 (qmgr)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 7191 (ntpd) score 251 or a child
Dec 30 14:59:48 iptam kernel: Killed process 7191 (ntpd)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 7080 (smbd) score 89 or a child
Dec 30 14:59:48 iptam kernel: Killed process 7086 (smbd)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 7314 (faxgetty) score 76 or a child
Dec 30 14:59:48 iptam kernel: Killed process 7314 (faxgetty)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 7315 (faxgetty) score 75 or a child
Dec 30 14:59:48 iptam kernel: Killed process 7315 (faxgetty)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 7316 (faxgetty) score 75 or a child
Dec 30 14:59:48 iptam kernel: Killed process 7316 (faxgetty)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 7317 (faxgetty) score 75 or a child
Dec 30 14:59:48 iptam kernel: Killed process 7317 (faxgetty)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 6993 (faxq) score 74 or a child
Dec 30 14:59:48 iptam kernel: Killed process 6993 (faxq)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 3554 (smbd) score 73 or a child
Dec 30 14:59:48 iptam kernel: Killed process 3554 (smbd)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 6995 (hfaxd) score 68 or a child
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 6995 (hfaxd) score 68 or a child
Dec 30 14:59:48 iptam kernel: Killed process 6995 (hfaxd)
Dec 30 14:59:48 iptam kernel: Out of memory: kill process 7282 (apache2) score 54 or a child
Dec 30 14:59:48 iptam kernel: Killed process 7282 (apache2)
Dec 30 14:59:48 iptam kernel: hfcmulti_rx: CRC-error
Dec 30 14:59:48 iptam smbd[7080]: Unable to open printcap file /etc/printcap for read!
Dec 30 14:59:48 iptam smbd[7080]: [2011/12/30 14:59:48, 0] printing/pcap.c:pcap_cache_reload(159)
Dec 30 14:59:48 iptam smbd[7080]: Unable to open printcap file /etc/printcap for read!
Dec 30 14:59:49 iptam FaxGetty[31739]: OPEN /dev/ttyIAX03 HylaFAX (tm) Version 4.3.1
Dec 30 14:59:49 iptam FaxGetty[31738]: OPEN /dev/ttyIAX02 HylaFAX (tm) Version 4.3.1
Dec 30 14:59:49 iptam FaxGetty[31737]: OPEN /dev/ttyIAX01 HylaFAX (tm) Version 4.3.1
Dec 30 14:59:49 iptam FaxGetty[31736]: OPEN /dev/ttyIAX00 HylaFAX (tm) Version 4.3.1
Dec 30 14:59:58 iptam FaxGetty[31739]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Dec 30 14:59:58 iptam FaxGetty[31736]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Dec 30 14:59:58 iptam FaxGetty[31738]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Dec 30 14:59:58 iptam FaxGetty[31737]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Dec 30 15:00:19 iptam kernel: hfcmulti_rx: CRC-error
Dec 30 15:01:12 iptam kernel: hfcmulti_rx: CRC-error
Dec 30 15:01:22 iptam kernel: hfcmulti_rx: CRC-error
Dec 30 15:03:41 iptam smbd[9372]: [2011/12/30 15:03:41, 0] printing/pcap.c:pcap_cache_reload(159)
Dec 30 15:03:41 iptam smbd[9372]: Unable to open printcap file /etc/printcap for read!
Dec 30 15:03:41 iptam smbd[9372]: [2011/12/30 15:03:41, 0] printing/pcap.c:pcap_cache_reload(159)
Dec 30 15:03:41 iptam smbd[9372]: Unable to open printcap file /etc/printcap for read!
Dec 30 15:05:24 iptam kernel: hfcmulti_rx: CRC-error
Jan 1 15:09:49 iptam syslogd 1.4.1#18: restart.

No comments:

Post a Comment