[Serusers] No mem for sip_msg

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Fri Sep 19 20:18:21 CEST 2003


On Sep 19, 2003 at 14:06, Rork, Joseph (J.P.) <jrork at ford.com> wrote:
> I've recently gone back to MySql v4.0, w/ SER 8.11.  I'm trying to log in and I am seeing the following message in the syslog.
> 
> Sep 19 17:50:17 sip2 ser[2066]: ERROR: receive_msg: no mem for sip_msg
> 
> I have plenty of memory in my system.  Has anyone else run into this problem, and if so, how did you fix it?

The short fix is edit config.h and change PKG_MEM_POOL_SIZE. Right now
is 1Mb, increase it.

Explanation:
 ser uses 2 types of memory, shared and "local". The "local" memory is
 not shared between the processes and it's faster to allocate since we
 don't need to lock on malloc.
 The shared mem. size can be increased form the command line (-m
 size_in_mb). The default is 32Mb.
 The "local" mem. maximum size is fixed to 1Mb (PKG_MEM_POOL_SIZE). We
 haven't needed more so far. In your case probably ser uses a lot of
 "local" mem. when it tries to load some of the databases in RAM on
 init. This is a known problem, and in the future we'll solve it without
 increasing PKG_MEM_POOL_SIZE, but for now this is the only solution.
 (I assume this is the problem in your case, but you could have also
 found a mem. leak, we would need the full logs and maybe a debug build
 to say for sure).

Andrei




More information about the sr-users mailing list