[OpenSIPS-Users] Not replaying to REG/invites, Not enough free memory

Miha miha at softnet.si
Fri Feb 28 07:49:18 CET 2014


HI Liviu,

just one thing. On this opensips server is about 15k registered users. 
Opensips is used for registrations, radiusd accouting, load_balancing,...

Will this be enought?

How can I know how much private and how much shared memory should I use?

tnx!

miha

Dne 2/27/2014 2:29 PM, pis(e Liviu Chircu:
> Hi Miha,
>
> You can run /opensips -h/ in order to get a list of useful startup 
> options. You're looking for:
>
> *-M* option - controls the private memory for each process (or pkg). 
> Default is 2MB. Seems it is not enough in your case.
> *-m* option - controls the shared memory between all processes (or 
> shm). Default is 32MB. You should be fine with 512MB of shared memory.
>
> You should try increasing the pkg mem with *-M 32* first, and see if 
> the problem persists.
>
> Best regards,
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
> On 02/27/2014 03:12 PM, Miha wrote:
>> HI,
>>
>> I went back looking for logs. This is what I have found:
>>
>> Which memory is too low? I can see that only 4% of system memory is 
>> used. Opensips is started with 512
>>
>> Feb 27 07:43:47 sip2 /usr/sbin/opensips[30332]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Feb 27 07:43:47 sip2 /usr/sbin/opensips[30330]: 
>> ERROR:core:build_res_buf_from_sip_req: out of pkg memory ; needs 549
>> Feb 27 07:43:47 sip2 /usr/sbin/opensips[30330]: 
>> ERROR:sl:sl_send_reply_helper: response building failed
>> Feb 27 07:43:47 sip2 /usr/sbin/opensips[30330]: 
>> ERROR:signaling:sig_send_reply_mod: failed to send reply with sl module
>> Feb 27 07:43:47 sip2 /usr/sbin/opensips[30330]: ERROR:auth:challenge: 
>> failed to send the response
>> Feb 27 07:43:47 sip2 /usr/sbin/opensips[30332]: 
>> ERROR:core:build_res_buf_from_sip_req: out of pkg memory ; needs 547
>> Feb 27 07:43:47 sip2 /usr/sbin/opensips[30332]: 
>> ERROR:sl:sl_send_reply_helper: response building failed
>> Feb 27 07:43:47 sip2 /usr/sbin/opensips[30332]: 
>> ERROR:signaling:sig_send_reply_mod: failed to send reply with sl module
>> Feb 27 07:43:47 sip2 /usr/sbin/opensips[30332]: ERROR:auth:challenge: 
>> failed to send the response
>>
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]: 
>> ERROR:core:new_credentials: no pkg memory left
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]: 
>> ERROR:core:parse_credentials: failed to create new credentials
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]: 
>> ERROR:auth:find_credentials: failed to parse credentials
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]: ERROR:auth:pre_auth: 
>> failed to find credentials
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]: 
>> ERROR:core:build_res_buf_from_sip_req: out of pkg memory ; needs 403
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]: 
>> ERROR:sl:sl_send_reply_helper: response building failed
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]: 
>> ERROR:signaling:sig_send_reply_mod: failed to send reply with sl module
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30332]: ERROR:auth:pre_auth: 
>> failed to send 400 reply
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: SCRIPT: stored 
>> password is rR62Tsm
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> ERROR:core:parse_headers: pkg memory allocation failed
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> ERROR:rr:find_first_route: failed to parse headers
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> ERROR:core:anchor_lump: out of pkg memory
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> ERROR:core:anchor_lump: out of pkg memory
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> ERROR:rr:record_route: failed to create an anchor
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> ERROR:core:parse_headers: pkg memory allocation failed
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> ERROR:core:build_res_buf_from_sip_req: parse_headers failed
>> Feb 27 07:43:46 sip2 /usr/sbin/opensips[30330]: 
>> ERROR:sl:sl_send_reply_helper: response building failed
>>
>> thx!
>>
>> miha
>> Dne 2/27/2014 8:11 AM, pis(e Miha:
>>> Hi,
>>>
>>> strange thig happend to me today. Opensips did not replay to 
>>> invites/registrations...
>>>
>>> After opensips (service) restart all loogs good. When this was 
>>> happening load was 0, so this was not an issue.
>>>
>>> Could this be causing domain setup.
>>>
>>> I have dns srv record sip.xxxxx.net which points to two domain's 
>>> (geo redundency). Than I have A record which point to the same 
>>> domain sip.xxxxx.net (dns srv domain).
>>> All was lookig goog, last week we enter this A record which is the 
>>> same as DNS SRV record. Could be this a problem?
>>>
>>> tnx!
>>>
>>> Opensips verison from repo (using centos, TLS is not used) :
>>>
>>> OpenSIPS (1.10.0beta-tls (x86_64/linux))
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> 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/20140228/7529480d/attachment-0001.htm>


More information about the Users mailing list