[OpenSIPS-Users] Memory leak issue?

Liviu Chircu liviu at opensips.org
Thu Apr 9 18:38:46 CEST 2015


Hi Chen-Che,

It is best to start off with a quick tutorial. Here you can learn how 
the Linux kernel manages your RAM (~ 2 minutes): [1]

I've inspected your OpenSIPS memory maps, and they both look OK. For the 
record, OpenSIPS will _never_ use more RAM than you give it at startup:
     total opensips memory = ("-m" * 1) + ("-M" * children) + 
extra_library_allocations

Conclusions:
     * if OpenSIPS should run out of memory because of a leak, it would 
_stop_ working. However, your system would still be fine
     * to inspect system memory, use "free -m", not "top"

[1] http://www.linuxatemyram.com/

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 09.04.2015 09:09, microx wrote:
> Hi all,
>
> I'm using OpenSIPS version 1.9.2 to set up a SIP outbound proxy and two
> internal SIP servers in my testing environment.
> All SIP requests and responses follow the same following routes.
> SIP client --> SIP outbound proxy --> SIP server --> SIP outbound proxy -->
> SIP clients
>
> With some stress tests in several days (many SIP client continue
> registration), I find that OpenSIPS eats much more memory than what I
> configuration. The eaten memory is not released after more than several hour
> after the stress test is done. Following the official troubleshooting guide
> about memory issue, I try to identify whether this is a memory leak issue.
> Please kindly help to take a look at the attached log files. Besides, is it
> possible that my incorrect configuration leads to memory leak? I am afraid
> that I do not properly write the script to produce the memory leak issue.
> Many thanks for any comment.
>
> opensips_memory_leak_sipserver.gz
> <http://opensips-open-sip-server.1449251.n2.nabble.com/file/n7596394/opensips_memory_leak_sipserver.gz>
>
> opensips_memory_leak_sipoutbound.gz
> <http://opensips-open-sip-server.1449251.n2.nabble.com/file/n7596394/opensips_memory_leak_sipoutbound.gz>
>
>
> Best regards,
> Chen-Che
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Memory-leak-issue-tp7596394.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list