[OpenSIPS-Users] Not enough free memory, will atempt defragmenation

Dani Popa dani.popa at gmail.com
Thu Aug 4 17:19:46 CEST 2011


Hi,

I know that, but how can i check why :)


root at test:~# opensips -V
version: opensips 1.6.4-2-tls (i386/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, USE_SCTP, DISABLE_NAGLE, 
USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_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.
svnrevision: 2:7861M
@(#) $Id: main.c 7530 2010-12-13 19:07:53Z bogdan_iancu $
main.c compiled on 05:57:05 May 24 2011 with gcc 4.5.2

root at test:~# free
              total       used       free     shared    buffers     cached
Mem:       4135816    3924440     211376          0     187496    3253496
-/+ buffers/cache:     483448    3652368
Swap:      6065148        300    6064848

I have 50 users online that use presence and IM

Dani
On 08/04/11 17:04, Razvan Crainea wrote:
> Hi Dani,
>
> It seems you are out of memory. What version of OpenSIPS are you using?
>
> Regards,
>
> Razvan Crainea
> OpenSIPS Developer
>
>
> On 04.08.2011 16:07, Dani Popa wrote:
>> Hi,
>>
>> How can i solve this kind of problems ? Opensips doesn't crash, but 
>> it not respond to any sip requests.
>>
>>
>> Aug  3 07:36:48 test /usr/local/sbin/opensips[29094]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Aug  3 07:36:48 test /usr/local/sbin/opensips[29094]: 
>> ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 496
>> Aug  3 07:36:48 test /usr/local/sbin/opensips[29094]: 
>> ERROR:sl:sl_send_reply_helper: response building failed
>> Aug  3 07:36:48 test /usr/local/sbin/opensips[29094]: 
>> ERROR:signaling:sig_send_reply_mod: failed to send reply with sl module
>> Aug  3 07:36:48 test /usr/local/sbin/opensips[29094]: 
>> ERROR:auth:challenge: failed to send the response
>> Aug  3 07:36:48 test /usr/local/sbin/opensips[29085]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Aug  3 07:36:48 test /usr/local/sbin/opensips[29085]: 
>> ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 529
>> Aug  3 07:36:48 test /usr/local/sbin/opensips[29085]: 
>> ERROR:sl:sl_send_reply_helper: response building failed
>> Aug  3 07:36:48 test /usr/local/sbin/opensips[29085]: 
>> ERROR:signaling:sig_send_reply_mod: failed to send reply with sl module
>> Aug  3 07:36:48 test /usr/local/sbin/opensips[29085]: 
>> ERROR:auth:challenge: failed to send the response
>> Aug  3 07:36:50 test /usr/local/sbin/opensips[29091]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Aug  3 07:36:50 test /usr/local/sbin/opensips[29091]: 
>> ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 480
>> Aug  3 07:36:50 test /usr/local/sbin/opensips[29091]: 
>> ERROR:sl:sl_send_reply_helper: response building failed
>> Aug  3 07:36:50 test /usr/local/sbin/opensips[29091]: 
>> ERROR:signaling:sig_send_reply_mod: failed to send reply with sl module
>> Aug  3 07:36:50 test /usr/local/sbin/opensips[29091]: 
>> ERROR:options:opt_reply: failed to send 200 via send_reply
>> Aug  3 07:36:50 test /usr/local/sbin/opensips[29087]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Aug  3 07:36:50 test /usr/local/sbin/opensips[29087]: 
>> ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 503
>> Aug  3 07:36:50 test /usr/local/sbin/opensips[29087]: 
>> ERROR:sl:sl_send_reply_helper: response building failed
>> Aug  3 07:36:50 test /usr/local/sbin/opensips[29087]: 
>> ERROR:signaling:sig_send_reply_mod: failed to send reply with sl module
>> Aug  3 07:36:50 test /usr/local/sbin/opensips[29087]: 
>> ERROR:auth:challenge: failed to send the response
>> Aug  3 07:36:51 test /usr/local/sbin/opensips[29086]: 
>> WARNING:core:fm_malloc: Not enough free memory, will atempt 
>> defragmenation
>> Aug  3 07:36:51 test /usr/local/sbin/opensips[29086]: 
>> ERROR:core:build_res_buf_from_sip_req: out of pkg memory  ; needs 503
>> Aug  3 07:36:51 test /usr/local/sbin/opensips[29086]: 
>> ERROR:sl:sl_send_reply_helper: response building failed
>>
>> Thanks,
>> Dani
>>
>> _______________________________________________
>> 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
>



More information about the Users mailing list