Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-08-12 Thread Surendra Tiwari
@miconda please look into this one. because now a days developer already started to move for kamailio in lua. if there is memory leak then it will be great issue. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-29 Thread Surendra Tiwari
Thank you for the updates. :-) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1577#issuecomment-408659508___ Kamailio (SER) -

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-27 Thread Daniel-Constantin Mierla
Didn't get the chance to look at it, being in a trip to USA (Cluecon). Hope to get back to it soon, after returning. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-27 Thread Surendra Tiwari
@miconda please let me know if this issue is reproduced by the same config at your side or not -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-21 Thread Surendra Tiwari
@miconda are you able to reproduce it? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1577#issuecomment-406842466___ Kamailio (SER) -

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-13 Thread Surendra Tiwari
yes i am using master branch only. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1577#issuecomment-404770193___ Kamailio (SER) -

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-13 Thread Daniel-Constantin Mierla
So, I assume it is still there in the master branch, after my last commit realted to app_lua. I will try to reproduce here with the first available time frame. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-12 Thread Surendra Tiwari
this can be reporduced by following lua config kamailio.cfg ``` #!KAMAILIO ### Defined Values # #!substdef "!MY_IP_ADDR!!g" #!substdef "!MY_EXTERNAL_IP!!g" #!substdef "!MY_UDP_PORT!5060!g" #!substdef "!MY_UDP_ADDR!udp:MY_IP_ADDR:MY_UDP_PORT!g" # Dispatcher File #!define

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-10 Thread Surendra Tiwari
Updates: I am running test with master branch. i will report if i found memory leak with simple config so you can reproduce. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-09 Thread Daniel-Constantin Mierla
An update -- I pushed a commit to restore the Lua execution stack. Try with latest master and if the issue is still expose, try to give the minimal configs and scripts to reproduce, as I wrote in my previous comment. -- You are receiving this because you are subscribed to this thread. Reply to

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-09 Thread Daniel-Constantin Mierla
Did you run and test it long enough that the memory increased a lot? I checked the logs for couple of PIDs and no relevant leak is reported. Maybe you can make minimal kamailio.cfg and kemi lua script along with a sipp scenario that I can use and reproduce here. -- You are receiving this

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-07 Thread Surendra Tiwari
[vg.log](https://github.com/kamailio/kamailio/files/2173037/vg.log) Please check the valgrind log. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-06 Thread Daniel-Constantin Mierla
I do not see any new relevant information attached here, have you run with valgrind as I metioned in my previous comment? It should give the report if there are leaks for system memory. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-04 Thread Surendra Tiwari
@miconda please see this issue. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1577#issuecomment-402530641___ Kamailio (SER) -

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-02 Thread Surendra Tiwari
yeah sure i will run that one. i am using both ways 1. using lua modules 2. without using lua modules both ways i can figure out that system memory getting increases. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-02 Thread Daniel-Constantin Mierla
Are you loading and using any Lua modules/libraries? Or it is just using the KSR module exported by Kamailio? Are you issuing often reloads of lua script? The way to troubleshoot leak of system memory is to run kamailio via valgrind (http://valgrind.org/). Do not forget you have to track

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-02 Thread Surendra Tiwari
we are seeing the memory related system increasing to 97% so its might the case that system memory getting increase. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-02 Thread Daniel-Constantin Mierla
It is not clear what type of memory leaks? Is it the on managed by kamailio in pkg or shm? Or is the system memory? Because in the shell script you use system's `free`. To watch kamailio's shm memory do: ``` kamctl stats shmem ``` For pkg: ``` kamctl rpc pkg.stats ``` If it is system

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-02 Thread Surendra Tiwari
more log for pkg_memory ``` 1 ip-172-31-11-179 kamailio[11425]: ALERT: qm_status: alloc'd from app_lua: app_lua_api.c: sr_lua_load_script(136) 1 ip-172-31-11-179 kamailio[11425]: ALERT: qm_status: alloc'd from app_lua: app_lua_api.c: sr_lua_reload_script(451)

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-07-01 Thread Surendra Tiwari
script to memory count for kamailio process ``` #!/bin/bash free echo "" for line in $(pgrep -f '/usr/local/sbin/kamailio -f /etc/kamailio/kamailio.cfg -P /var/run/kamailio.pid -m 16 -M 8 -u root -g root') do pms=$(pmap -x $line|grep total) echo "$pms

Re: [sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-06-29 Thread Surendra Tiwari
@miconda rightnow our memory utilization are 97%. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1577#issuecomment-401450253___

[sr-dev] [kamailio/kamailio] MemoryUtilization getting increase with lua routing (#1577)

2018-06-29 Thread Surendra Tiwari
### Description We are using lua base routing with app_lua. We are seeing that our memory-utilization on that system continuously getting increase. our route.lua will have all routing logic same as