[OpenSIPS-Devel] not enough free pkg memory

Liviu Chircu liviu at opensips.org
Thu Jan 28 13:21:35 EST 2021


On 28.01.2021 15:12, Alain Bieuzent wrote:
>
> Since we migrate from opensips 3,0 to the latest 3.1, after around 1 
> week of uptime we find a a certain number of message in logs (around 
> 15,000 per day) like « ERROR:core:fm_malloc: not enough free pkg 
> memory (11184320 bytes left, need 536), please increase the "-M" 
> command line parameter! »
>
> We already increasedP_MEMORY (from 16 to 32 then 32 to 128) but it 
> didn’t help.
>
> root at lbsip-owf-out02 /var/log  opensips -V
>
> version: opensips 3.1.1 (x86_64/linux)
>
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, 
> Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_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, sigio_rt, select.
>
> git revision: 229ec0793
>
> main.c compiled on 17:41:56 Jan  4 2021 with gcc 6.3.0
>
Hi,

There was a significant PKG memory leak fixed on Jan 11th [1], which was 
related to t_on_branch().  If you are using t_on_branch() in your 
opensips.cfg, please get the latest 3.1.1 sources, rebuild and your 
problems should go away.  For this, I suggest either:

* installing the 3.1 nightly packages
* fetching the 3.1 sources and rebuilding
* wait for the 3.1.2 minor release

[1]: https://github.com/OpenSIPS/opensips/commit/c82a625e

Cheers,

-- 
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20210128/65beb24b/attachment.html>


More information about the Devel mailing list