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

Dani Popa dani.popa at gmail.com
Fri Aug 19 10:47:36 CEST 2011


Hi,

Where should i find memory dump ? I have something in logs about memory. 
I'll attach an file. Please let me know if this is what you need.

I also increased PKG_MEM_POOL_SIZE = 8 *1024 * 1024, and shared mem to 
256,  and  also updated opensips 1.6.4 to latest svn revision, i think.

root at test:/home/danip/opensips_1_6# opensipsctl fifo get_statistics all 
| grep shmem
shmem:total_size = 268435456
shmem:used_size = 2084688
shmem:real_used_size = 2221616
shmem:max_used_size = 3095312
shmem:free_size = 266213840
shmem:fragments = 796


root at test:/home/danip/opensips_1_6# 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, 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:8256M
@(#) $Id: main.c 7530 2010-12-13 19:07:53Z bogdan_iancu $
main.c compiled on 13:13:09 Aug 17 2011 with gcc 4.5.2

Please let me know how i can help more.

logs about memory you can find at 
http://92.55.132.13/local7.log.mem.tar.gz, i tried to send on list but 
the attach was too big.

Thanks,
Dani

On 08/04/11 18:26, Vlad Paiu wrote:
> Hello,
>
> Is it possible that you upgrade to 1.7 ? It is possible that this 
> issue was fixed in the latest OpenSIPS version.
>
> If not, go to Makefile.defs, uncomment the line with
>     -DDBG_QM_MALLOC \
> and comment the line with
>     -DF_MALLOC \
>
> and then recompile OpenSIPS.
>
> Also set memlog=1 in your OpenSIPS cfg, and when the memory get's 
> filled up you can either shutdown the proxy or send a SIGUSR1 signal 
> to the attendant to get a memory dump.
>
> Please return with the memory dump and we will try to help.
>
>
> Regards,
>



More information about the Users mailing list