[OpenSIPS-Users] Out of memory problem

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Oct 20 17:41:30 CEST 2016


Hi Denis,

See http://www.opensips.org/Documentation/TroubleShooting-OutOfMem - 
this will help you make the difference between a mem leak and a 
temporary memory outage due load.

On the second question - the 1G of mem will be reserved from the 
beginning and internally managed by OpenSIPS.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 20.10.2016 16:58, Denis wrote:
> Re: [OpenSIPS-Users] Out of memory problem Hello Bogdan!
>
> Now i am using Opensips 2.2.1 and  i have two problems with shm memory
> "Oct 20 14:22:06 opensips-main 
> /usr/local/opensips2.2/sbin/opensips[9431]: ERROR:core:fm_malloc: not 
> enough free shm memory (130982512 bytes left), please increase the 
> "-m" command line parameter!
> Oct 20 14:22:06 opensips-main 
> /usr/local/opensips2.2/sbin/opensips[9431]: INFO:core:fm_malloc: 
> attempting defragmentation... (need 206024 bytes)
> Oct 20 14:22:06 opensips-main 
> /usr/local/opensips2.2/sbin/opensips[9431]: INFO:core:fm_malloc: 
> unable to alloc a big enough fragment!
> Oct 20 14:22:06 opensips-main 
> /usr/local/opensips2.2/sbin/opensips[9431]: ERROR:tm:sip_msg_cloner: 
> no more share memory
> Oct 20 14:22:06 opensips-main 
> /usr/local/opensips2.2/sbin/opensips[9431]: ERROR:tm:new_t: out of mem
> Oct 20 14:22:06 opensips-main 
> /usr/local/opensips2.2/sbin/opensips[9431]: ERROR:tm:t_newtran: new_t 
> failed
> "
>
> Two questions:
> 1) If this problem appears only during some time (after which 
> everything became fine), should i still stopped Opensips to try catch 
> debug?
> 2) Share memory. For example, i established 1G shm. Please, can you 
> explain me, what does it value mean? Opensips could use this amount of 
> memory (or cannot if it is not necessary), or it reserve it?
>
> Thank you.
>
> mailto:denis7979 at mail.ru
>
>
> 	Hi Denis,
>
> If you upgrade to 2.2, use the DBG_MALLOC (together with your memory 
> manager like F_MALLOC, HP_MALLOC or QM_MALLOC) to enable memory leak 
> troubleshooting - at shutdown you will get a memory dump, so you will 
> clearly see if there is a leak of not.
>
> Regards,
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
> On 31.05.2016 19:16, Denis wrote:
>
> 	Re: [OpenSIPS-Users] Out of memory problem Hello!
>
> I had increased PKG memory twice (to 1000 M) but the problem is still 
> exists.
>
> May 31 19:09:29 opensips-main 
> /usr/local/opensips2.1/sbin/opensips[20681]: 
> ERROR:core:db_allocate_rows: no memory left
> May 31 19:09:29 opensips-main 
> /usr/local/opensips2.1/sbin/opensips[20681]: 
> ERROR:db_mysql:db_mysql_fetch_result: no memory left
> May 31 19:09:29 opensips-main 
> /usr/local/opensips2.1/sbin/opensips[20681]: 
> ERROR:dialplan:dp_load_db: failed to fetch
> May 31 19:09:29 opensips-main 
> /usr/local/opensips2.1/sbin/opensips[20681]: 
> ERROR:dialplan:dp_load_all_db: unable to load ast_dialplan table
> May 31 19:09:29 opensips-main 
> /usr/local/opensips2.1/sbin/opensips[20681]: 
> ERROR:dialplan:mi_reload_rules: failed to reload database
> May 31 19:09:29 opensips-main 
> /usr/local/opensips2.1/sbin/opensips[20681]: 
> ERROR:mi_fifo:mi_fifo_server: command (dp_reload) processing failed
>
> Haw else can i make memory debug without Opensips stopped?
>
> Thank you.
>
> mailto:denis7979 at mail.ru
>
>
> 	No, more like the 2.2+ LTS, due to be released towards the end of 
> March, a fork of the current "master" branch on git.
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
> On 29.02.2016 12:58, Денис Путято wrote:
> Re: [OpenSIPS-Users] Out of memory problem Newer version = 2.1?
>
> mailto:denis7979 at mail.ru
>
>
> 	This is PKG memory (i.e. packaged / private / per-process), so you 
> should actually increase "-M" CLI switch!
>
> Note: Newer versions of OpenSIPS will have improved error reporting 
> for easier troubleshooting of oom (out-of-memory) errors.
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
> On 29.02.2016 10:20, Денис Путято wrote:
> Re: [OpenSIPS-Users] Out of memory problem 
> ERROR:core:db_allocate_rows: no memory left
> ERROR:db_mysql:db_mysql_fetch_result: no memory left
> ERROR:dialplan:dp_load_db: failed to fetch
> ERROR:dialplan:dp_load_all_db: unable to load ast_dialplan table
> ERROR:dialplan:mi_reload_rules: failed to reload database
> ERROR:mi_fifo:mi_fifo_server: command () processing failed
>
>
> mailto:denis7979 at mail.ru
>
> /> What is the exact text of the error?
> > ‎
> > --
> > Alex Balashov | Principal | Evariste Systems LLC
> > 303 Perimeter Center North, Suite 300
> > Atlanta, GA 30346
> > United States
>
> > Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
> > Web: /http://www.evaristesys.com//, /http://www.csrpswitch.com/
>
> /> Sent from my BlackBerry.
> >   Original Message
> > From: Денис Путято
> > Sent: Monday, February 29, 2016 00:58
> > To: Alex Balashov; OpenSIPS users mailling list
> > Subject: Re: [OpenSIPS-Users] Out of memory problem
>
>
> > _______________________________________________
> > 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
>
>
>
> _______________________________________________
> 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/20161020/6c3b2907/attachment.htm>


More information about the Users mailing list