[OpenSIPS-Users] opensips3.0/dev requires huge amount of memory and crashes

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Apr 24 03:30:53 EDT 2019


Hi Konrad,

Thanks for the details, I found and fixed the issue (see 
https://github.com/OpenSIPS/opensips/commit/88b0b885431f643733562d30dcc1d5d2a6d92902).

Just update your tree and try it again.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/

On 04/23/2019 03:18 PM, Konrad Malewski wrote:
> fm_malloc is first error:
> Apr 23 12:11:27 [50] INFO:core:mod_init: initializing UDP-plain protocol
> Apr 23 12:11:27 [50] INFO:dialog:mod_init: Dialog module - initializing
> Apr 23 12:11:27 [50] INFO:core:evi_publish_event: Registered event 
> <E_DLG_STATE_CHANGED(4)>
> Apr 23 12:11:27 [50] INFO:topology_hiding:mod_init: initializing...
> Apr 23 12:11:27 [50] INFO:rest_client:mod_init: Module initialized!
> Apr 23 12:11:27 [50] NOTICE:signaling:mod_init: initializing module ...
> Apr 23 12:11:27 [50] ERROR:core:fm_malloc: not enough free shm memory 
> (62949808 bytes left, need 2824938474944), please increase the "-m" 
> command line parameter!
> Apr 23 12:11:27 [50] INFO:core:fm_malloc: attempting defragmentation...
> Apr 23 12:11:27 [50] INFO:core:fm_malloc: unable to alloc a big enough 
> fragment!
> Apr 23 12:11:27 [50] ERROR:core:init_multi_proc_support: out of memory
> Apr 23 12:11:27 [50] ERROR:core:main: failed to init multi-proc support
> Apr 23 12:11:27 [50] INFO:core:cleanup: cleanup
> Apr 23 12:11:27 [50] NOTICE:event_datagram:destroy: destroy module ...
> Apr 23 12:11:27 [50] NOTICE:core:main: Exiting....
>
> TCP alone is the problem
> TCP + UDP works fine
> UDP alone works fine
>
>
>
> On Tue, Apr 23, 2019 at 12:49 PM Bogdan-Andrei Iancu 
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>
>     Is there any following error / warning log ? Or you get only that
>     single err line ??
>
>     And you get that error by using TCP without UDP ? using TCP + UDP
>     is fine ?
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>
>     OpenSIPS Founder and Developer
>        https://www.opensips-solutions.com
>     <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.opensips-2Dsolutions.com&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=Q2-P3NgorS0ZH4_aMeg5NL1og3Rsx6yNgM-aaPfa8xzzIkVlEcHJTs2jlyabbp9e&m=_bnCF3cXINafd9aW9lAOcWFgfAH52iW85NTp0KIOfT0&s=XKZhpHD685GLGMMHTjiSBH0ZGuo5TJxTty8a14LL6Gs&e=>
>     OpenSIPS Summit 2019
>        https://www.opensips.org/events/Summit-2019Amsterdam/
>     <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.opensips.org_events_Summit-2D2019Amsterdam_&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=Q2-P3NgorS0ZH4_aMeg5NL1og3Rsx6yNgM-aaPfa8xzzIkVlEcHJTs2jlyabbp9e&m=_bnCF3cXINafd9aW9lAOcWFgfAH52iW85NTp0KIOfT0&s=_xIKaXTeDJ4umSkuenOzE3L96WICDmUstpWFDDB2H5U&e=>
>
>     On 04/23/2019 01:08 PM, Konrad Malewski wrote:
>>     I checked just now.
>>     It sufficient to comment out UDP listening port and leave just TCP
>>
>>     ///////////
>>     #listen=udp:172.17.0.2:5060
>>     <https://urldefense.proofpoint.com/v2/url?u=http-3A__172.17.0.2-3A5060&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=Q2-P3NgorS0ZH4_aMeg5NL1og3Rsx6yNgM-aaPfa8xzzIkVlEcHJTs2jlyabbp9e&m=_bnCF3cXINafd9aW9lAOcWFgfAH52iW85NTp0KIOfT0&s=FVZCOP9baSEN4VjWUe833t3Zyie_i6cWX7VgmEOWT_k&e=>
>>      # CUSTOMIZE ME
>>     listen=tcp:172.17.0.2:5060
>>     <https://urldefense.proofpoint.com/v2/url?u=http-3A__172.17.0.2-3A5060&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=Q2-P3NgorS0ZH4_aMeg5NL1og3Rsx6yNgM-aaPfa8xzzIkVlEcHJTs2jlyabbp9e&m=_bnCF3cXINafd9aW9lAOcWFgfAH52iW85NTp0KIOfT0&s=FVZCOP9baSEN4VjWUe833t3Zyie_i6cWX7VgmEOWT_k&e=>
>>      # CUSTOMIZE ME
>>     ///////////
>>
>>     ERROR:core:fm_malloc: not enough free shm memory (63093216 bytes
>>     left, need 8843713106240), please increase the "-m" command line
>>     parameter!
>>
>>
>>     On Tue, Apr 23, 2019 at 9:00 AM Bogdan-Andrei Iancu
>>     <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>>
>>         Hi Konrad,
>>
>>         For sure there was something wrong - could you give it a
>>         another try with latest 3.0 beta ?
>>
>>         Regards,
>>
>>         Bogdan-Andrei Iancu
>>
>>         OpenSIPS Founder and Developer
>>            https://www.opensips-solutions.com
>>         <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.opensips-2Dsolutions.com&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=Q2-P3NgorS0ZH4_aMeg5NL1og3Rsx6yNgM-aaPfa8xzzIkVlEcHJTs2jlyabbp9e&m=j0LqP8JXCUhyWZJz9QYkuiQ6yY7HWS3ozNR18T-FC2o&s=xWCGHrJVYpMR16Pm1dXvRy317O8Qia-1uLZI3zWSkHs&e=>
>>         OpenSIPS Summit 2019
>>            https://www.opensips.org/events/Summit-2019Amsterdam/
>>         <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.opensips.org_events_Summit-2D2019Amsterdam_&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=Q2-P3NgorS0ZH4_aMeg5NL1og3Rsx6yNgM-aaPfa8xzzIkVlEcHJTs2jlyabbp9e&m=j0LqP8JXCUhyWZJz9QYkuiQ6yY7HWS3ozNR18T-FC2o&s=S1JpCMZ0JNXjz9g8AUgBs8lUV76bDYTGPI5ohs7IrSM&e=>
>>
>>         On 04/08/2019 12:38 PM, Konrad Malewski wrote:
>>>         Hello,
>>>
>>>         If I enabled TCP only as only protocol, opensips3 starts
>>>         crashing at startup with following error:
>>>
>>>         ERROR:core:fm_malloc: not enough free shm memory (62949296
>>>         bytes left, need 17109592486272), please increase the "-m"
>>>         command line parameter!
>>>
>>>         The amount of "need" is different every time I restart opensips
>>>
>>>         ERROR:core:fm_malloc: not enough free shm memory (62949296
>>>         bytes left, need 8689571889280), please increase the "-m"
>>>         command line parameter!
>>>
>>>         when I enable udp and add appropriate listen=udp:IP:PORT
>>>         entry problem goes away.
>>>
>>>         The issue is odd, so what am I doing wrong? Maybe this is a
>>>         bug ?
>>>
>>>         -- 
>>>         -- 
>>>         Konrad Malewski
>>>
>>>
>>>         _______________________________________________
>>>         Users mailing list
>>>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>         <https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.opensips.org_cgi-2Dbin_mailman_listinfo_users&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=Q2-P3NgorS0ZH4_aMeg5NL1og3Rsx6yNgM-aaPfa8xzzIkVlEcHJTs2jlyabbp9e&m=j0LqP8JXCUhyWZJz9QYkuiQ6yY7HWS3ozNR18T-FC2o&s=3-PY2shO5Q9SB6W7HquVvtqxXkTdsl4Hwt_33Nkkmg8&e=>
>>
>>
>>
>>     -- 
>>     -- 
>>     Konrad Malewski
>>
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>     <https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.opensips.org_cgi-2Dbin_mailman_listinfo_users&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=Q2-P3NgorS0ZH4_aMeg5NL1og3Rsx6yNgM-aaPfa8xzzIkVlEcHJTs2jlyabbp9e&m=_bnCF3cXINafd9aW9lAOcWFgfAH52iW85NTp0KIOfT0&s=ak_5CMPGmRNVJw1qZ-muZq1BD5mFjf5YDRJApryx_I0&e=>
>
>
>
> -- 
> -- 
> Konrad Malewski

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190424/b2f4a30a/attachment-0001.html>


More information about the Users mailing list