[asterisk-dev] Strange Asterisk Behaviour - Stuck channels

Venefax venefax at gmail.com
Wed Jul 30 15:21:50 CDT 2008


I am using freetds and unixODBC
Is there a known problem here ??

-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Tilghman Lesher
Sent: Wednesday, July 30, 2008 4:12 PM
To: Asterisk Developers Mailing List
Subject: Re: [asterisk-dev] Strange Asterisk Behaviour - Stuck channels

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

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev




More information about the asterisk-dev mailing list