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

Marco Hierl marco.hierl at next-id.de
Fri Dec 15 05:02:55 EST 2017


Hi Liviu,

thanks for the hint.

The Problem was that in opensips.service I overlook the line:
ExecStartPre=/usr/sbin/opensips –c

I need to set -M 128 in there too.

Thanks and best regards
  Marco




Von: Users [mailto:users-bounces at lists.opensips.org] Im Auftrag von Liviu Chircu
Gesendet: Donnerstag, 14. Dezember 2017 16:31
An: users at lists.opensips.org
Betreff: Re: [OpenSIPS-Users] when DBG_MALLOC is checked it leads to “not enough free pkg memory”


Hi,

Have you tried editing /etc/sysconfig/opensips? IIRC, that file overrides the opensips.service values.

Regards,

Liviu Chircu

OpenSIPS Developer

http://www.opensips-solutions.com
On 14.12.2017 17:25, Marco Hierl wrote:
Hi Răzvan,

You are right…  it starts with opensips -M 128 –f my.cnf
Bevor I started with „/etc/init.d/opensips start”. A change in that file did not help either. I also changed the value in “opensips.service” config file without success. Is the memory debugging not allowed as service?

Best regards
  Marco





Von: Users [mailto:users-bounces at lists.opensips.org] Im Auftrag von Razvan Crainea
Gesendet: Donnerstag, 14. Dezember 2017 15:19
An: users at lists.opensips.org<mailto:users at lists.opensips.org>
Betreff: Re: [OpenSIPS-Users] when DBG_MALLOC is checked it leads to “not enough free pkg memory”

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<http://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<mailto:Users at lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users





_______________________________________________

Users mailing list

Users at lists.opensips.org<mailto: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/20171215/6e823dc1/attachment-0001.html>


More information about the Users mailing list