when DBG_MALLOC is checked it leads to “not enough free pkg memory”

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

when DBG_MALLOC is checked it leads to “not enough free pkg memory”

Marco Hierl

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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: when DBG_MALLOC is checked it leads to “not enough free pkg memory”

Razvan Crainea-3
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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: when DBG_MALLOC is checked it leads to “not enough free pkg memory”

Marco Hierl

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:[hidden email]] Im Auftrag von Razvan Crainea
Gesendet: Donnerstag, 14. Dezember 2017 15:19
An: [hidden email]
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

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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: when DBG_MALLOC is checked it leads to “not enough free pkg memory”

Liviu Chircu

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 [[hidden email]] Im Auftrag von Razvan Crainea
Gesendet: Donnerstag, 14. Dezember 2017 15:19
An: [hidden email]
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

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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: when DBG_MALLOC is checked it leads to “not enough free pkg memory”

Marco Hierl

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:[hidden email]] Im Auftrag von Liviu Chircu
Gesendet: Donnerstag, 14. Dezember 2017 16:31
An: [hidden email]
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 [[hidden email]] Im Auftrag von Razvan Crainea
Gesendet: Donnerstag, 14. Dezember 2017 15:19
An: [hidden email]
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

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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users