[Kamailio-Users] Shared memory

Henning Westerholt henning.westerholt at 1und1.de
Tue Mar 23 16:21:05 CET 2010


On Tuesday 23 March 2010, Bruno Machado wrote:
> Thanks for your answer. This memory error happened in a interval of almost
>  10 days. Considering the high traffic that the server handles, we can say
>  that it is a lot of time.

Hello Bruno,

10 days is not that long, this looks more like a memory leak.

>  Following your hint, I set the shared memory to
>  work with 512 megabytes. If we consider that the usage of memory is a
>  linear function of the number of calls, the server will work ininterruptly
>  for more than 70 days.
> 
> I have been looking for a way to monitor how much of shared memory was
>  already used. But I didn't find anything, except the troubleshooting
>  section on the Devel Docs. I'm not using Kamailio v3 yet, but I saw that
>  it has a memory manager. I think that these features (Doug Lea and LL) are
>  going to be used mainly for developers. The third one, 'print memory
>  status summary in debug mode', is more oriented to users like me. It is
>  what I think.

Kamailio has (more or less) the same internal memory manager. You could use 
the statistics API (kamctl fifo get_statistics all). This should give you 
plenty of statistics, including the shared memory usage.

Regards,

Henning



More information about the Users mailing list