[Serusers] No enough memory

Nayan Jain nayan.jain at gmail.com
Fri Oct 8 21:27:44 CEST 2004


I was also facing the same problem.
Things worked fine if I recompiled it without F_MALLOC flag. 

Any idea is the memory leak in fm_malloc() or in dbase.c?

There are 
Best Regards,
Nayan Jain
Drishti-Soft Solutions Pvt Ltd
http://www.drishti-soft.com 


Jan Janak wrote:
> First of all, try to set the value of PKG_MEM_POOL_SIZE to the original
> value - 1024 * 1024 and try again.
> 
> Then try to increase the value again, but make sure that the new value
> is a power of two, for example 8 * 1024 * 1024.
> 
>   Jan.
> 
> On 31-08 21:51, Peter Herre wrote:
> 
>>Hi,
>>
>>when starting ser with database access I receive the
>>following error messages:
>>
>> 1(0) DEBUG: init_mod_child (-1): tm
>> 1(0) DEBUG: callid: '7b7bffbf-0 at 10.48.9.4'
>> 1(0) DEBUG: init_mod_child (-1): usrloc
>> 1(0) DEBUG: init_mod_child (-1): auth_db
>> 1(0) connect_db(): No enough memory
>> 1(0) db_init(): Error while trying to connect database
>> 1(0) auth_db:init_child(): Unable to connect database
>> 1(0) init_mod_child(): Error while initializing module auth_db
>> 1(0) timer: init_child failed
>>
>>Can you provide me any help?
>>
>>
>>More detailed information follows:
>>
>>uname -a:
>>=========
>>Linux sip 2.6.5-7.104-default #1 Wed Jul 28 16:42:13 UTC 2004 i686 i686 i386
>>GNU/Linux
>>
>>ser distribution:
>>=================
>>ser-0.8.14_src.tar.gz
>>
>>modified config.h file:
>>
>>/*used only if PKG_MALLOC is defined*/
>>#define PKG_MEM_POOL_SIZE 10240*1024
>>
>>/*used if SH_MEM is defined*/
>>#define SHM_MEM_SIZE 64
>>
>>ser -V:
>>=======
>>version:  0.8.14 (i386/linux)
>>flags: STATS:Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, DNS_IP_HACK, SHM_MEM,
>>SHM_MM
>>AP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
>>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>>MAX_URI_SI
>>ZE 1024, BUF_SIZE 65535
>>@(#) $Id: main.c,v 1.168.4.3 2004/06/28 15:41:21 andrei Exp $
>>main.c compiled on 23:59:48 Aug 24 2004 with gcc 3.3
>>
>>ser config file:
>>================
>>see enclosed ser.cfg
>>
>>ser log file at loglevel 8:
>>===========================
>>see enclosed ser.log
>>
>>
>>Best regards,
>>Peter




More information about the sr-users mailing list