[asterisk-users] "Hidden" memory leak
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Thu Jun 24 05:05:06 CDT 2010
On Wed, Jun 23, 2010 at 04:27:20PM -0500, Tilghman Lesher wrote:
> On Wednesday 23 June 2010 15:45:05 Miguel Molina wrote:
> > Hi all,
> >
> > Anyone know why this happens?
> >
> > Mem: 524288k total, 508120k used, 16168k free, 0k buffers
> > Swap: 0k total, 0k used, 0k free, 0k cached
> >
> > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> > 1 root 15 0 2152 664 576 S 0.0 0.1 0:49.26 init
> > 7398 root 18 0 10172 2904 2312 S 0.0 0.6 0:00.21 sshd
> > 9856 root 15 0 4756 1528 1232 S 0.0 0.3 0:00.06 bash
> > 11316 root 15 0 3332 1112 572 S 0.0 0.2 0:01.14 crond
> > 16282 root 25 0 4756 1008 820 S 0.0 0.2 0:00.00 safe_asterisk
> > 22514 root 25 0 494m *445m* 6612 S 0.0 *87.0* 663:08.66 asterisk
[snip]
> > Anoyone knows why the memory leak is not shown in the asterisk malloc
> > debug, and how can I figure what's causing it? The asterisk version is
> > 1.6.2.9.
>
> If it's not listed in the internal debug, then it's probably a memory leak in
> one or more of the external libraries linked into Asterisk. That could be
> anything from openssl to libxml2 (neither likely) to something specifically
> related to a second or third party module that you've loaded.
If so, it should appear in the memory map of the process under that
library.
Try:
pmap 22514
Also try running that command a bit later on and see what has changed.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list