[Asterisk-Users] Asterisk 1.0.2 - Unable to allocate channelstructure

Matthew Boehm mboehm at cytelcom.com
Fri Jan 7 09:04:59 MST 2005


Holy cow! Why are there so many asterisk instances running? There should
only be 1.

kill them all and start just 1 asterisk

-Matthew

----- Original Message ----- 
From: "Eric" <eric at monmouth.com>
To: <asterisk-users at lists.digium.com>
Sent: Friday, January 07, 2005 9:35 AM
Subject: [Asterisk-Users] Asterisk 1.0.2 - Unable to allocate
channelstructure


> Hi,
>
> This morning I had some failed calls.  On the console (and in the log)
> I saw the error "Unable to allocate channel structure".  Before I
restarted
> the process, I checked it's memory usage in ps and glanced at my free
> memory in top.  Asterisk was using a normal ammount of memory, about
> 40M.  I don't think this was a system limit.  This was running Asterisk
> v1.0.2.  Below is an excerpt of my messages log as well as the output
> of ps and top, if it helps.
>
> Has anyone seen this sort of error before?  Any ideas what could be
> causing it?  The changelog for 1.0.3 doesn't list anything related
> to memory or resource allocation.. Anyone know if there was any
> work done to ast_channel_alloc() or related functions?
>
>
> Thanks.
>
> - Eric
>
>
> Jan  7 07:24:50 WARNING[163850]: Unable to allocate channel structure
> Jan  7 07:24:50 WARNING[163850]: Unable to start PBX on channel 0/11, span
1
> Jan  7 07:24:50 WARNING[163850]: Call specified, but not found?
> Jan  7 07:24:50 WARNING[163850]: Hangup on bad channel 0/11 on span 1
> Jan  7 07:24:51 WARNING[180235]: Unable to allocate channel structure
> Jan  7 07:24:51 WARNING[180235]: Unable to start PBX on channel 0/1, span
2
> Jan  7 07:24:51 WARNING[180235]: Call specified, but not found?
> Jan  7 07:24:51 WARNING[180235]: Hangup on bad channel 0/1 on span 2
> Jan  7 07:24:54 WARNING[163850]: Call specified, but not found?
> Jan  7 07:24:54 WARNING[163850]: Hangup on bad channel 0/11 on span 1
> Jan  7 07:24:55 WARNING[180235]: Call specified, but not found?
> Jan  7 07:24:55 WARNING[180235]: Hangup on bad channel 0/1 on span 2
> Jan  7 08:20:24 WARNING[81925]: Unable to allocate channel structure
> Jan  7 08:20:24 NOTICE[81925]: Unable to create/find channel
> Jan  7 08:20:42 WARNING[81925]: Unable to allocate channel structure
> Jan  7 08:20:42 NOTICE[81925]: Unable to create/find channel
> Jan  7 08:21:03 WARNING[81925]: Unable to allocate channel structure
> Jan  7 08:21:03 NOTICE[81925]: Unable to create/find channel
> Jan  7 08:22:43 WARNING[81925]: Unable to allocate channel structure
> Jan  7 08:22:43 NOTICE[81925]: Unable to create/find channel
> Jan  7 08:23:01 WARNING[81925]: Unable to allocate channel structure
> Jan  7 08:23:01 NOTICE[81925]: Unable to create/find channel
> Jan  7 08:23:23 WARNING[81925]: Unable to allocate channel structure
> Jan  7 08:23:23 NOTICE[81925]: Unable to create/find channel
> Jan  7 08:26:09 WARNING[81925]: Unable to allocate channel structure
> Jan  7 08:26:09 NOTICE[81925]: Unable to create/find channel
> Jan  7 08:26:17 WARNING[81925]: Unable to allocate channel structure
> Jan  7 08:26:17 NOTICE[81925]: Unable to create/find channel
> Jan  7 08:28:23 WARNING[81925]: Unable to allocate channel structure
> Jan  7 08:28:23 NOTICE[81925]: Unable to create/find channel
> Jan  7 08:28:29 WARNING[81925]: Maximum retries exceeded on call
1636b9b523c778f
> a758245a9688c4c15 at 64.19.138.82 for seqno 102 (Non-critical Response)
> Jan  7 08:28:30 WARNING[163850]: Unable to allocate channel structure
> Jan  7 08:28:30 WARNING[163850]: Unable to start PBX on channel 0/12, span
1
> Jan  7 08:28:31 WARNING[163850]: Call specified, but not found?
> Jan  7 08:28:31 WARNING[163850]: Hangup on bad channel 0/12 on span 1
> Jan  7 08:28:31 WARNING[180235]: Unable to allocate channel structure
> Jan  7 08:28:31 WARNING[180235]: Unable to start PBX on channel 0/2, span
2
> Jan  7 08:28:31 WARNING[180235]: Call specified, but not found?
> Jan  7 08:28:31 WARNING[180235]: Hangup on bad channel 0/2 on span 2
> Jan  7 08:28:34 WARNING[163850]: Call specified, but not found?
> Jan  7 08:28:34 WARNING[163850]: Hangup on bad channel 0/12 on span 1
> Jan  7 08:28:35 WARNING[180235]: Call specified, but not found?
> Jan  7 08:28:35 WARNING[180235]: Hangup on bad channel 0/2 on span 2
> Jan  7 08:29:18 WARNING[81925]: Unable to allocate channel structure
> Jan  7 08:29:18 NOTICE[81925]: Unable to create/find channel
> Jan  7 08:29:30 WARNING[81925]: Unable to allocate channel structure
> Jan  7 08:29:30 NOTICE[81925]: Unable to create/find channel
>
>
>
> (root at sip1) ~ # ps aux
> USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
> root         1  0.0  0.1  1272  476 ?        S     2004   0:06 init [3]
> root         2  0.0  0.0     0    0 ?        SW    2004   0:00 [keventd]
> root         3  0.0  0.0     0    0 ?        SWN   2004   0:00
[ksoftirqd_CPU0]
> root         4  0.0  0.0     0    0 ?        SW    2004   0:00 [kswapd]
> root         5  0.0  0.0     0    0 ?        SW    2004   0:00 [bdflush]
> root         6  0.0  0.0     0    0 ?        SW    2004   0:00 [kupdated]
> root         7  0.0  0.0     0    0 ?        SW    2004   0:00 [kjournald]
> root        20  0.0  0.0     0    0 ?        SW    2004   0:00 [kjournald]
> root        21  0.0  0.0     0    0 ?        SW    2004   0:00 [kjournald]
> root        22  0.0  0.0     0    0 ?        SW    2004   0:02 [kjournald]
> root        23  0.0  0.0     0    0 ?        SW    2004   0:00 [kjournald]
> root        24  0.0  0.0     0    0 ?        SW    2004   0:00 [kjournald]
> root        37  0.0  0.2  1324  556 ?        S     2004   0:00 syslogd -m
0
> root        40  0.0  0.4  1928 1140 ?        S     2004   0:00 klogd
> root        49  0.0  1.0  2796 2796 ?        SL    2004   0:00
/usr/local/bin/nt
> root        57  0.0  0.4  2884 1180 ?        S     2004   0:10 sshd
> root        59  0.0  0.1  1264  404 tty2     S     2004   0:00
/sbin/agetty 3840
> root        60  0.0  0.1  1264  404 tty3     S     2004   0:00
/sbin/agetty 3840
> root        61  0.0  0.1  1264  408 ttyS0    S     2004   0:00
/sbin/agetty -h t
> root      2714  0.0  0.1  1264  404 tty1     S     2004   0:00
/sbin/agetty 3840
> root     15790  0.0  0.3  2108 1000 ?        S    Jan04   0:00 /bin/sh
/usr/loca
> root     18328  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18329  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18331  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18332  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18333  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18334  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18335  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18336  0.0  2.4 41412 6308 ?        S    Jan06   0:27
/usr/sbin/asteris
> root     18337  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18339  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18340  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18341  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18342  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18343  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18344  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     18345  0.0  2.4 41412 6308 ?        S    Jan06   0:00
/usr/sbin/asteris
> root     19527  1.5  2.4 41412 6308 ?        S    Jan06  14:04
/usr/sbin/asteris
> root     20147  0.0  2.4 41412 6308 ?        S    01:34   0:00
/usr/sbin/asteris
> root     20643  0.0  0.1  1248  308 ?        S    08:24   0:00 sleep 300
> root     20644  0.1  0.6  3016 1588 ?        R    08:28   0:00 sshd
> eric     20646  0.0  0.4  2228 1264 ttyp1    S    08:28   0:00 -bash
> root     20651  0.0  0.5  2248 1280 ttyp1    S    08:28   0:00 -bash
> root     20654  0.0  0.2  2484  740 ttyp1    R    08:29   0:00 ps aux
>
>
> top - 08:30:37 up 65 days, 30 min,  1 user,  load average: 0.01, 0.02,
0.00
> Tasks:  44 total,   2 running,  42 sleeping,   0 stopped,   0 zombie
> Cpu(s):   1.5% user,   0.1% system,   0.0% nice,  98.4% idle
> Mem:    255556k total,   240548k used,    15008k free,    86336k buffers
> Swap:  1028120k total,        0k used,  1028120k free,   129388k cached
>
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  Command
>     1 root       8   0   476  476  424 S  0.0  0.2   0:06.58 init
>     2 root       9   0     0    0    0 S  0.0  0.0   0:00.00 keventd
>     3 root      18  19     0    0    0 S  0.0  0.0   0:00.00
ksoftirqd_CPU0
>     4 root       9   0     0    0    0 S  0.0  0.0   0:00.00 kswapd
>     5 root       9   0     0    0    0 S  0.0  0.0   0:00.00 bdflush
>     6 root       9   0     0    0    0 S  0.0  0.0   0:00.00 kupdated
>     7 root       9   0     0    0    0 S  0.0  0.0   0:00.08 kjournald
>    20 root       9   0     0    0    0 S  0.0  0.0   0:00.05 kjournald
>    21 root       9   0     0    0    0 S  0.0  0.0   0:00.05 kjournald
>    22 root       9   0     0    0    0 S  0.0  0.0   0:02.02 kjournald
>    23 root       9   0     0    0    0 S  0.0  0.0   0:00.07 kjournald
>    24 root       9   0     0    0    0 S  0.0  0.0   0:00.05 kjournald
>    37 root       9   0   556  556  472 S  0.0  0.2   0:00.85 syslogd
>    40 root       9   0  1140 1140  428 S  0.0  0.4   0:00.04 klogd
>    49 root       9   0  2796 2796 2068 S  0.0  1.1   0:00.00 ntpd
>    57 root       9   0  1180 1180 1068 S  0.0  0.5   0:10.81 sshd
>    59 root       9   0   404  404  352 S  0.0  0.2   0:00.00 agetty
>    60 root       9   0   404  404  352 S  0.0  0.2   0:00.00 agetty
>    61 root       9   0   408  408  356 S  0.0  0.2   0:00.00 agetty
>  2714 root       9   0   404  404  352 S  0.0  0.2   0:00.00 agetty
> 15790 root       9   0  1000 1000  848 S  0.0  0.4   0:00.00
check_asterisk.
> 18328 root       9   0  6312 6308 3100 S  0.0  2.5   0:00.07 asterisk
> 18329 root       9   0  6312 6308 3100 S  0.0  2.5   0:00.00 asterisk
> 18331 root       9   0  6312 6308 3100 S  0.0  2.5   0:00.00 asterisk
> 18332 root       9   0  6312 6308 3100 S  0.0  2.5   0:00.00 asterisk
> 18333 root       9   0  6312 6308 3100 S  0.0  2.5   0:00.00 asterisk
> 18334 root       9   0  6312 6308 3100 S  0.0  2.5   0:00.05 asterisk
> 18335 root       9   0  6312 6308 3100 S  0.0  2.5   0:00.00 asterisk
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list