[OpenSIPS-Users] when DBG_MALLOC is checked it leads to “not enough free pkg memory”

Răzvan Crainea razvan at opensips.org
Thu Dec 14 09:18:31 EST 2017


Hi, Marco!

Are you sure that opensips is indeed starting with the right parameter 
when you set P_MEMORY? Can you start opensips "manually" like:

opensips -M 128

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 12/14/2017 03:03 PM, Marco Hierl wrote:
>
> Dear all,
>
> I try to follow 
>https://www.opensips.org/Documentation/TroubleShooting-OutOfMem “, 
> but when DBG_MALLOC is checked, I got “not enough free pkg memory” 
> when starting OpenSIPS
>
> Dec 14 12:53:39 sbc-welt-hh1 opensips[30378]: Dec 14 12:53:39 [30378] 
> ERROR:core:qm_malloc: not enough free pkg memory (0 bytes left, need 
> 200), please increase the "-M" command line parameter!
>
> Dec 14 12:53:39 sbc-welt-hh1 opensips[30378]: Dec 14 12:53:39 [30378] 
> CRITICAL:core:mk_action: pkg memory allocation failure
>
> I increased P_MEMORY=128 in /etc/default/opensips, but it did not help.
>
> If I uncheck DBG_MALLOC it’s starting fine.
>
> I’m using debian 9.3 and
>
> version: opensips 2.3.2 (x86_64/linux)
>
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, 
> QM_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_lt, epoll_et, sigio_rt, select.
>
> git revision: 2ae87c644
>
> main.c compiled on 12:52:27 Dec 14 2017 with gcc 6.3.0
>
> thanks and best regards
>
>   Marco
>
>
>
> _______________________________________________
> 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/20171214/8b30951c/attachment-0001.html>


More information about the Users mailing list