[OpenSIPS-Users] Opensips 100% CPU usage

2019-04-10 Thread Gholamreza Sabery
Hi,

I have an Opensips 2.3.6. After working for two to three weeks, it starts
to use 100% CPU. It happens periodically. Although, not exactly the same
time always, but you can expect this to happen, approximately every three
weeks.

PS: I attached the results of *opensipsctl ps*, *opensipsctl trap* and *top*
when CPU usage was at it's peak.


opensips.rar
Description: application/rar
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips 100% cpu

2010-12-01 Thread Bogdan-Andrei Iancu

Hi,

it looks like the lock is kept by another process doing some stuff 
related to that transaction...maybe processing a different reply...Did 
you add some new stuff in onreply route ?


could you run with full logs (debug=6) and send me those logs (for the 
entire call) ?


Regards,
Bogdan

Ангелов К.Н. wrote:

Hello,

my opensips process goes to 100% cpu after first call with default 
script and auth_aaa module enabled.

No such problem at all when auth_aaa disabled. OS FreeBSD 8.1/amd64

#loadmodule auth_aaa.so
#modparam(auth_aaa, aaa_url, 
radius:/usr/local/etc/radiusclient-ng/radiusclient.conf)

#modparam(auth_aaa, service_type, 15)

It hangs at modules/tm/t_reply.c on LOCK_REPLIES( t );

*
+if (!onreply_avp_mode) LM_DBG(!onreply_avp_mode!\n);
+if (!has_reply_route) LM_DBG(!has_reply_route!\n);

if (!onreply_avp_mode || !has_reply_route) {
+ LM_DBG(Before lock\n);
/* lock the reply*/
LOCK_REPLIES( t );
+ LM_DBG(After lock\n);
}


Here logs, without loadmodule auth_aaa.so and modparam auth_aaa

Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
DBG:tm:reply_received: org. status uas=0, uac[0]=0 local=0 is_invite=0)
Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
DBG:tm:reply_received: !onreply_avp_mode!
Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
DBG:tm:reply_received: !has_reply_route!
Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
DBG:tm:reply_received: Before lock
Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
DBG:tm:reply_received: After lock
Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
DBG:tm:t_should_relay_response: T_code=0, new_code=200
Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
DBG:tm:relay_reply: branch=0, save=0, relay=0



with them

Nov 26 15:35:33 noc-pbx /usr/local/sbin/opensips[70900]: 
DBG:tm:reply_received: org. status uas=0, uac[0]=0 local=0 is_invite=0)
Nov 26 15:35:33 noc-pbx /usr/local/sbin/opensips[70900]: 
DBG:tm:reply_received: !onreply_avp_mode!
Nov 26 15:35:33 noc-pbx /usr/local/sbin/opensips[70900]: 
DBG:tm:reply_received: !has_reply_route!
Nov 26 15:35:33 noc-pbx /usr/local/sbin/opensips[70900]: 
DBG:tm:reply_received: Before lock


..100%CPU.


gdb

Loaded symbols for /usr/local/lib/libradiusclient-ng.so.2
Reading symbols from /usr/local/lib/opensips/modules/auth_aaa.so...(no 
debugging symbols found)...done.

Loaded symbols for /usr/local/lib/opensips/modules/auth_aaa.so
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols 
found)...done.

Loaded symbols for /libexec/ld-elf.so.1
[Switching to Thread 800c041c0 (LWP 100216)]
0x00080089e74c in sched_yield () from /lib/libc.so.7
(gdb) bt
#0 0x00080089e74c in sched_yield () from /lib/libc.so.7
#1 0x00080073e10f in pthread_mutex_getyieldloops_np ()
from /lib/libthr.so.3
#2 0x0008014f98a2 in reply_received ()
from /usr/local/lib/opensips/modules/tm.so
#3 0x0041c5fe in forward_reply ()
#4 0x00444078 in receive_msg ()
#5 0x004746d4 in udp_rcv_loop ()
#6 0x00422b5a in main ()
*


Any tips ?

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users