[OpenSIPS-Users] Need help to print Shared memory and package memory used in opensips in logs .

Liviu Chircu liviu at opensips.org
Tue Mar 6 06:55:13 EST 2018


Hi Sasmita,

Hmmm... indeed, the error is somewhat unhelpful to the script writer. 
The problem is that "statistics.so" is not loaded, hence "pvar $stat... 
is not defined". A similar thing happens with $json. I, myself, was a 
bit puzzled when I first hit this error.

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 06.03.2018 13:02, Sasmita Panda wrote:
> version: opensips 1.11.2-notls (x86_64/linux)
> flags: STATS: On, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, 
> SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
> MAX_URI_SIZE 1024, BUF_SIZE 65535
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> svn revision: 2537:3262M
> main.c compiled on 13:20:22 Nov 15 2017 with gcc 4.8.3
>
>
> This is what exactly I am using .
>
>
> */Thanks & Regards/*
> /Sasmita Panda/
> /Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
> On Tue, Mar 6, 2018 at 4:27 PM, Sasmita Panda <spanda at 3clogic.com 
> <mailto:spanda at 3clogic.com>> wrote:
>
>     Hi All ,
>
>     I am using opensips-1.11.2  .
>
>     *xlog("Real SHMEM used size is $stat(real_used_size) \n");*
>
>
>     Trying to print logs through this but its not working . giving
>     below error .
>     *
>     *
>     * ERROR:core:pv_parse_spec: pvar "stat"(inner_name) not found*
>     * ERROR:core:pv_parse_spec: wrong char [$/36] in
>     [$stat($real_used_size) #012] at [6 (5)]*
>     * ERROR:core:pv_parse_format: parsing PV spec failed*
>     * ERROR:core:fix_actions: wrong format [Real SHMEM used size is
>     $stat($real_used_size) #012] for value param*
>     * ERROR:core:fix_actions: fixing failed (code=-5) at cfg line 78*
>     * ERROR:core:main: failed to fix configuration with err code -5*
>     * INFO:core:cleanup: cleanup*
>
>     Please help me how to do this . Thanks in advance .
>
>
>
>     */Thanks & Regards/*
>     /Sasmita Panda/
>     /Network Testing and Software Engineer/
>     /3CLogic , ph:07827611765/
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180306/312d6667/attachment.html>


More information about the Users mailing list