[OpenSIPS-Users] [NEW] NET and PKMEM statistics classes

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Apr 23 09:20:00 CEST 2009


Hi,

OpenSIPS 1.6 (trunk) provides 2 more classes of statistic variables. 
These new variables targets to improve the monitoring of the healths and 
load of your opensips system:

1. NET class , to provide information about the network sockets. Available:
    ./opensipsctl fifo get_statistics net:
            net:waiting_udp = 0
            net:waiting_tcp = 0
            net:waiting_tls = 0

   This variables will tell how many bytes are buffered for reading on 
the net sockets - more or less how much data waits to be read by 
opensips from network. This is an idea parameter to look at if you want 
to get a complete picture about the load of your opensips instance.
    NOTE: waiting_tcp & waiting_tls ara available only if the TCP / TLS 
support is compiled in.


2. PKMEM class, to provide information about the private memory of each 
process. Available:
    ./opensipsctl fifo get_statistics pkmem:
            pkmem:0-total_size = 1048576
            pkmem:0-used_size = 78728
            pkmem:0-real_used_size = 101296
            pkmem:0-max_used_size = 105176
            pkmem:0-free_size = 947280
            pkmem:0-fragments = 59
            pkmem:1-total_size = 1048576
            pkmem:1-used_size = 61808
            pkmem:1-real_used_size = 83416
            pkmem:1-max_used_size = 84656
            pkmem:1-free_size = 965160
            pkmem:1-fragments = 24
            pkmem:2-total_size = 1048576
            pkmem:2-used_size = 74856
            pkmem:2-real_used_size = 96960
            pkmem:2-max_used_size = 96960
            pkmem:2-free_size = 951616
            pkmem:2-fragments = 9
            pkmem:3-total_size = 1048576
            pkmem:3-used_size = 130952
            pkmem:3-real_used_size = 153160
            pkmem:3-max_used_size = 153160
            pkmem:3-free_size = 895416
            pkmem:3-fragments = 9

    A set of 
(total_size,used_size,real_used_size,max_used_size,free_size,fragments) 
is published for each process - the variables are prefixed with the 
prefix id, according the the PS MI command:
    ./opensipsctl fifo ps       
        Process::  ID=0 PID=24528 Type=stand-alone SIP receiver 
udp:192.168.2.10:5060
        Process::  ID=1 PID=24529 Type=time_keeper
        Process::  ID=2 PID=24530 Type=timer
        Process::  ID=3 PID=24531 Type=MI FIFO

Regards,
Bogdan






More information about the Users mailing list