With the season holiday just starting, it's again a good time to express
my thanks and greetings to all the friends, developers and community
members that made 2018 another great year for Kamailio project.
Enjoy the holidays! Merry Christmas!
Daniel
* Santa is flying Kamailio! *
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 - www.kamailioworld.com
### Description
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
We are buidling some kind of our own rtpengine dispatcher based on our own algorithm using kemi Lua.
In one of the functions we are calling:
`local reqBody = function(command, params)
return json.encode({
jsonrpc = "2.0",
method = "rtpengine." .. command,
params = params
})
end
KSR.jsonrpcs.exec(reqBody("show", { "all" }))
local data = json.decode(KSR.pv.get("$jsonrpl(body)"))
`
And watching **free_mem** decrasing in case of every call of this function
If we are commenting this - nothing happens
P.S. We are doing the same for the dispatcher module but did not find memory leak for it:
`local reqBody = function (command,params)
return json.encode( {
jsonrpc = "2.0",
method = "dispatcher." ..command,
params = params
} )
end
KSR.jsonrpcs.exec(reqBody( "list" ) )
local data = json.decode( KSR.pv.get("$jsonrpl(body)") )
`
### Troubleshooting
#### Reproduction
To reproduce this issue suppose will be enough to call code above
#### Debugging Data
test results for 10000 calls total/300 per second (sipp based)
memory stats on the start
shmem:fragments = 2 |
shmem:free_size = 63131408
shmem:max_used_size = 3994704
shmem:real_used_size = 3977456
shmem:total_size = 67108864
shmem:used_size = 3205144
memory stats on the end
shmem:fragments = 5 |
shmem:free_size = 60106232
shmem:max_used_size = 7019952
shmem:real_used_size = 7002632
shmem:total_size = 67108864
shmem:used_size = 4150008
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.1.6 (x86_64/linux) 7d1964
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 7d1964
compiled on 03:23:23 Oct 5 2018 with gcc 6.3.0
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
1 machine: SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64 GNU/Linux
2 machine: SMP Debian 4.9.110-3+deb9u2 (2018-08-13) x86_64 GNU/Linux
```
If will need any additional info just let me know
P.S. We also tried to find what can give this behavior on the rtpengine.c but didn't figured out yet
--
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/1778
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests.
If you have questions about using Kamailio or related to its configuration file,
ask on sr-users mailing list:
* http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing
C code, ask on sr-dev mailing list
* http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the
developers to troubleshoot the issue.
If you submit a feature request (or enhancement), you can delete the text of
the template and only add the description of what you would like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
Centos RPM repo is generating Kamailio 5.0.7 packages that can't be installed
### Troubleshooting
#### Reproduction
By using the repo
https://download.opensuse.org/repositories/home:/kamailio:/v5.0.x-rpms/Cent…
when trying to install Kamailio 5.0.7, yum returns this error:
```
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
kamailio-5.0.7-3.el7.centos.x8 FAILED
http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.0.x-rpms/C…: [Errno 14] HTTP Error 416 - Requested Range Not Satisfiable
Trying other mirror.
```
#### Debugging Data
#### Log Messages
#### SIP Traffic
### Possible Solutions
<!--
-->
### Additional Information
* **Operating System**:
```
$ cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
```
--
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/1604