[asterisk-dev] Strange Asterisk Behaviour - Stuck channels

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Jul 30 15:12:02 CDT 2008


On Wednesday 30 July 2008 14:56:43 Venefax wrote:
> I don't use any AGI script or anything like that. The only "moving" part is
> cdr_odbc and func_odbc. Maybe there is a memory leak there.
> For example: I restarted the system 1 hour and 25 minutes ago, and the
> memory reported by top is already 448 MB and growing.
>
> Tasks:  11 total,   1 running,  10 sleeping,   0 stopped,   0 zombie
> Cpu(s):  1.6%us,  0.1%sy,  0.0%ni, 98.3%id,  0.0%wa,  0.0%hi,  0.0%si,
> 0.0%st
> Mem:  32896224k total, 30096584k used,  2799640k free,  1533540k buffers
> Swap: 12287992k total,      180k used, 12287812k free, 24767416k cached
>
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> 30113 root      19   0  448m 139m 5648 S    2  0.4 311:22.62 asterisk
>
> Is there any way to know where the memory is going? Please take a look at
> the calls open.

Which backend ODBC driver are you using?  I know of at least one (Oracle, with 
the instant client library) that leaks memory and file descriptors like a
sieve.  To track memory allocations in Asterisk, compile with MALLOC_DEBUG,
and type 'memory show allocations'.

-- 
Tilghman



More information about the asterisk-dev mailing list