Kannel Memory Leak

[email protected]
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi,
I need some help with a memory leak running kannel. I'm using Debian (Etch)
on a Intel Core2Duo processor. I've tried the Debian-package and the latest
cvs-version on an x86_64 an i386 arch.
 
The problem is that the bearerbox runs into a memory leak when connected to
a Wavecom Dualband modem (WMOD2B-G900/1800). If I run the same system with
a Single Band Modem (WMO2-G900) everything is fine.

I've tested with several modems to exclude a modemfailure. Every test the
same result Single Band works, Dual Band doesn't. There are no warnings,
errors or panics in the kannel-core.log. bearerbox is connecting the modem
and sending messages correctly. Only thing is that after aprox 5 mins the
mainmemory and swap are full and the system isn't working anymore.

Has anyone any idea or solution for this problem.


kannelversion:

   Kannel bearerbox version `cvs-20080221'. Build `Feb 22 2008 13:52:03',
   compiler `4.1.2 20061115 (prerelease) (Debian 4.1.1-21)'. System
   Linux, release 2.6.18, version #1 SMP Wed Feb 6 15:48:23 CET 2008,
   machine x86_64. Hostname xxx.xxx.xx, IP 192.168.10.94. Libxml
   version 2.6.27. Using native malloc.


top after 1 minute:

top - 15:06:48 up 2 min,  6 users,  load average: 0.27, 0.24, 0.10
Tasks:  76 total,   2 running,  74 sleeping,   0 stopped,   0 zombie
Cpu0  : 55.5%us,  1.0%sy,  0.0%ni, 43.5%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu1  : 43.0%us,  0.7%sy,  0.0%ni, 56.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:    512096k total,   198268k used,   313828k free,     6308k buffers
Swap:  1502036k total,        0k used,  1502036k free,    27296k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 2657 kannel    18   0  221m 127m 1260 S  100 25.6   0:09.17 bearerbox
    1 root      18   0  6120  688  564 S    0  0.1   0:01.31 init

top after 2 minutes:

top - 15:07:13 up 2 min,  6 users,  load average: 0.52, 0.30, 0.12
Tasks:  75 total,   1 running,  74 sleeping,   0 stopped,   0 zombie
Cpu0  : 69.8%us,  3.7%sy,  0.0%ni,  6.6%id, 19.9%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu1  : 11.6%us,  0.7%sy,  0.0%ni, 87.4%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:    512096k total,   506032k used,     6064k free,      104k buffers
Swap:  1502036k total,     8928k used,  1493108k free,     5796k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 2657 kannel    18   0  556m 461m  636 S   86 92.3   0:33.66 bearerbox
    1 root      18   0  6120  252  228 S    0  0.0   0:01.31 init

top after 3 minutes:

top - 15:08:11 up 3 min,  7 users,  load average: 0.95, 0.47, 0.19
Tasks:  75 total,   2 running,  73 sleeping,   0 stopped,   0 zombie
Cpu0  :  0.0%us,  2.7%sy,  0.0%ni, 89.7%id,  7.3%wa,  0.0%hi,  0.3%si,  0.0%st
Cpu1  : 98.7%us,  1.3%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:    512096k total,   506416k used,     5680k free,      148k buffers
Swap:  1502036k total,   825452k used,   676584k free,     2416k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 2657 kannel    18   0 1354m 470m  368 S  100 94.0   1:31.88 bearerbox
  190 root      10  -5     0    0    0 S    3  0.0   0:01.30 kswapd0


thanks for helping,
Steven Koenig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.