[Freeswitch-users] High CPU load but only few sessions

Helmut Kuper helmut.kuper at ewetel.de
Mon Apr 6 03:20:25 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hello,

I still have this problem. From the day of starting up freeswitch two
threads are consuming slowly more and more CPU power. In parallel FS
virtual and physical memory usage grows slowly as well. FS is up for 6
days now and served 3160 sessions. Virtual memory usage has grown from
200MB to 1.1GB (18,1%) and is still growing. CPU is mostly around 25%
with lowest of 17% and a maximum of 50% (all on a 32 bit 4 CPU core
system) and is still growing.

There are two FS-Threads with nearly same CPU usage of currently
around 20% each (I used htop for this):

strace Thread 1 (I guess this is the sofia/sip thread):
epoll_wait(21, {}, 4, 0)                = 0
epoll_wait(21, {}, 4, 0)                = 0
epoll_wait(21, {{EPOLLIN, {u32=2, u64=2}}}, 4, 0) = 1
ioctl(24, FIONREAD, [268])              = 0
recvmsg(24, {msg_name(16)={sa_family=AF_INET, sin_port=htons(1068),
sin_addr=inet_addr("85.16.245.249")}, msg_iov(1)=[{"SIP/2.0 200
Ok\r\nVia: SIP/2.0/UDP"..., 268}], msg_controllen=0, msg_flags=0}, 0)
= 268
gettimeofday({1239012809, 343580}, NULL) = 0
gettimeofday({1239012809, 343645}, NULL) = 0
epoll_wait(21, {}, 4, 0)                = 0
epoll_wait(21, {}, 4, 0)                = 0
...


strace Thread 2:
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
...

I use FreeSWITCH Version 1.0.trunk (12347M)



regards
helmut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
 
iD8DBQFJ2ddp4tZeNddg3dwRAlkXAJ9fIwpJw6u18JPhFC4hzB+0Z1iAbgCfW7AE
dnrmpXDLVOnWtjwFKMoVw48=
=zzZ9
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xD760DDDC.asc
Type: application/pgp-keys
Size: 1854 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090406/f512e936/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xD760DDDC.asc
Type: application/pgp-keys
Size: 1854 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090406/f512e936/attachment-0001.bin 


More information about the Freeswitch-users mailing list