[OpenSIPS-Users] New OpenSIPS debugging functions available

Vlad Paiu vladpaiu at opensips.org
Tue Feb 22 12:04:37 CET 2011


Hello all,

OpenSIPS trunk was enhanced with some new functionality for load 
monitoring and load debugging. The idea is to make easier for the user 
to figure out what is bottlenecking the system, whether it's the DNS, 
the database connection or the actual processing of the SIP message 
while going through the script.

For find execution delays, two new core parameters have been added,
        exec_dns_threshold
        exec_msg_threshold,

that are documented here [1]. If a DNS operation or a SIP message 
processing takes more microseconds than the given thresholds, a warning 
message will be triggered to the logging facility.

Also, a new parameter has been added to the DB_MYSQL module, 
exec_query_threshold , which behaves exactly the same as the above core 
parameters, the only difference being that it is applied to MYSQL 
queries [2].


Furthermore, OpenSIPS now exports statistics that show the load 
percentage on the SIP working children.
For the TCP children, there is a new stat called "tcp-load" which gives 
the percentage of children that are awake and processing SIP message.
For the UDP children, there is a new stat for each of the UDP interfaces 
that OpenSIPS is listening on. The UDP load statistics are named 
"udp:ip:port-load". More information on the new added statistics can be 
found here [3].

[1] http://www.opensips.org/Resources/DocsCoreFcn#toc48
[2] http://www.opensips.org/html/docs/modules/devel/db_mysql.html#id249058
[3] http://www.opensips.org/Resources/DocsCoreStats#toc15

Regards,

-- 
Vlad Paiu
OpenSIPS Developer




More information about the Users mailing list