>From your own post at openser:
>> SHM_MEM_SIZE ?
>>
>> /*used only if PKG_MALLOC is defined*/
>> #define PKG_MEM_POOL_SIZE 1024*1024
>>
>> /*used if SH_MEM is defined*/
>> #define SHM_MEM_SIZE 32
>>
>>
>> 2. I've compiled my ser with
>>
>> #define PKG_MEM_POOL_SIZE 1024*1024*512

You should increase SHM_MEM_SIZE. Do it at a value power of 2!!!!!

The memory "increase" you see in free it's because you've got "so big" PKG_MEM_POOL_SIZE that SER is trying to allocate memory as it is required and that's why it looks like you don't have memory in your system BUT, as Hendrik pointed, you DO have free memory in your system because this allocated memory will be reassignated
to another process when SER frees it.
I'm not an expert and this is not the right place to make a disertation on memory usage, sorry.

Hope it helps,
Samuel.

2007/6/21, Arun Kumar <arunvoip@gmail.com>:
hi

can you please expain in breif what should I do in this case. Where I increase my memory parameters. I've comiled ser with 512MB private memory and started with -m 100 ?

please advise.

thanks

On 6/21/07, samuel <samu60@gmail.com > wrote:
Maybe you've so many aliases that you should increase your memory parameters...having 300 users and 120000 aliases doesn't look reasonable and maybe SER is trying to fork to too many destinations and it runs out of its memory in this case...

Sam.

2007/6/21, Arun Kumar <arunvoip@gmail.com >:
error:
--------
 sip ser[17671]: ERROR: sip_msg_cloner: cannot allocate memory
 sip ser[17671]: ERROR: new_t: out of mem:
 sip ser[17671]: ERROR: t_newtran: new_t failed
sip ser[17671]: ERROR: sl_reply_error used: I'm terribly sorry, server error occurred (1/SL)
sip ser[17671]: Warning: sl_send_reply: I won't send a reply for ACK!!
sip ser[17669]: ERROR: sip_msg_cloner: cannot allocate memory
sip ser[17669]: ERROR: new_t: out of mem:
sip ser[17669]: ERROR: t_newtran: new_t failed
sip ser[17669]: ERROR: sl_reply_error used: I'm terribly sorry, server error occurred (1/SL)
sip ser[17669]: Warning: sl_send_reply: I won't send a reply for ACK!!
sip ser[17669]: ERROR: sip_msg_cloner: cannot allocate memory
sip ser[17669]: ERROR: new_t: out of mem:
sip ser[17669]: ERROR: t_newtran: new_t failed
sip ser[17669]: ERROR: sl_reply_error used: I'm terribly sorry, server error occurred (1/SL)

this is my latest mem info:
# free
          total       used      free    shared buffers cached
Mem: 2074376 2019056 55320 0         75972 1517308
-/+ buffers/cache:425776 1648600
Swap: 2031608  0          2031608

thanks


On 6/21/07, Hendrik Scholz < hendrik.scholz@freenet-ag.de > wrote:
Hi!

Arun Kumar wrote:
> Hi All,

quite an appropriate greeting for both serusers at Iptel and OpenSER.

> please can some one tell me is there any memory leak with ser-0.9.6. It
> runs fine for few days and then starts some memory related problems in
> that case I've to restart my ser.

from one of your previous mails I got this:
# free
total used free shared buffers cached
Mem: 2074376 1740724 333652 0 72328 1280192
-/+ buffers/cache: 388204 1686172
Swap: 2031608 0 2031608

If you take a close look at the numbers you'll see that (minus
buffers/cache) you have 1.6GB of memory left.


> I've 2GB of physical RAM in my machine
> with Quad Core cpu. but now I've only 70MB free out of 2 GB in max 1 day
> It will start to give me again error.

Which error?
Please paste a few (reoccuring) messages from your SER logs.

Cheers,
Hendrik

--
Hendrik Scholz
VoIP Systems Engineer

----------------------------------------------------------------------------
Telefon: + 49 (0) 431 90 20 552
Telefax: + 49 (0) 431 90 20 559
E-Mail: hendrik.scholz@freenet.ag
Website:  www.freenet.de; www.mobilcom.de
----------------------------------------------------------------------------
freenet Cityline GmbH
Ein Unternehmen der freenet AG
Hamburger Chaussee 2-4
24114 Kiel
----------------------------------------------------------------------------
Geschäftsführer: Eckhard Spoerr, Axel Krieger
Amtsgericht Kiel, HRB 6202


_______________________________________________
Serusers mailing list
Serusers@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers