[OpenSIPS-Devel] [ opensips-Bugs-3513212 ] STUN hangs.

SourceForge.net noreply at sourceforge.net
Tue Apr 3 11:04:47 CEST 2012


Bugs item #3513212, was opened at 2012-03-30 04:49
Message generated for change (Comment added) made by vladut-paiu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3513212&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.7.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nick Altmann (nikbyte)
Assigned to: Vladut-Stefan Paiu (vladut-paiu)
Summary: STUN hangs.

Initial Comment:
opensips-1.7.2 SVN #8787

After about 12 hours of opensips uptime it uses more, than 90% of cpu and STUN doesn't work.
This messages in log:
opensips-2-0 WARNING:core:fm_malloc: Not enough free memory, will attempt defragmenation

I tried this patch:
diff -durN config.h config.h
--- config.h    (revision 8837)
+++ config.h    (working copy)
@@ -114,8 +114,8 @@
 
 #define SRV_MAX_PREFIX_LEN SRV_TLS_PREFIX_LEN
 
-#define PKG_MEM_SIZE 2                         /*!< Used only if PKG_MALLOC is defined*/
-#define SHM_MEM_SIZE 32                                /*!< Used if SH_MEM is defined*/
+#define PKG_MEM_SIZE 128                       /*!< Used only if PKG_MALLOC is defined*/
+#define SHM_MEM_SIZE 512                       /*!< Used if SH_MEM is defined*/
 
 #define TIMER_TICK   1                         /*!< one second */
 #define UTIMER_TICK  100*1000                  /*!< 100 miliseconds*/

and also -m parameter. It doesn't help.


----------------------------------------------------------------------

>Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2012-04-03 02:04

Message:
Hi Nick,

Also, when the issue happens again ( OpenSIPS goes to high CPU load ),
please use top or any other monitoring tool to identify the OpenSIPS PID
that is using more than 90% of CPU, and then do
     gdb opensips PID
and inside gdb do
     bt full

and send us the output of that.

Regards,
Vlad


----------------------------------------------------------------------

Comment By: Nick Altmann (nikbyte)
Date: 2012-04-02 22:47

Message:
I need some time to collect information. I'll post it as soon, as it's
ready.


----------------------------------------------------------------------

Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2012-03-30 07:09

Message:
Hi Nick,

Can you please follow the following tutorial in order to get a memory dump,
so we can further investigate this ?
http://www.opensips.org/Resources/DocsTsMem

Regards,
Vlad

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3513212&group_id=232389



More information about the Devel mailing list