[OpenSIPS-Users] Memory Leak - runtime flags?
Callum Guy
callum.guy at x-on.co.uk
Fri Nov 29 10:55:02 EST 2019
Hi All,
I have recently deployed a new registrar and have been seeing a gradual
increase in the memory footprint - enough that I'm having to expand the RAM
(its virtualised) to ensure it doesn't run out.
You can see a diff of the statistics collected last night at 11pm and today
at 3pm here:
https://gist.github.com/spacetourist/2103503674e134bd598c7f1e3a82674c/revisions
Processes 5-9 are my UDP SIP receiver threads (autoscaled down from an
initial footprint of 20 threads).
Using 3.0.1 on CentOS 7 8GB RAM (soon to be 32GB!). Currently OpenSIPs is
using all the RAM (minus OS usage) and 2GB of swap. Trying to use dialog
and dr clustering if that is significant. Alos have NAT pings configured
for all registrations (4000 at time of writing).
I am using runtime configuration flags of "*-m 2048 -M 4096*" and am
concerned that these were (way) too high, I think I've misinterpreted their
meaning during initial setup. Is this a ridiculous setting for my
environment? Is it just as simple as OpenSIPs being greedy with the memory
such that it doesn't bother to free anything while each process free space
remaining? Should my -M value * max number of processes fit into my RAM? I
guess with an 8GB system that would mean dropping this to "-M 256"?
I've done some research into the issue however I haven't found anything
else that would be an obvious target so wondered if the community might
have some ideas of where I can begin investigations.
Many thanks,
Callum
--
*0333 332 0000 | www.x-on.co.uk <http://www.x-on.co.uk> | **
<https://www.linkedin.com/company/x-on> <https://www.facebook.com/XonTel>
<https://twitter.com/xonuk> *
X-on
is a trading name of Storacall
Technology Ltd a limited company registered in
England and Wales.
Registered Office : Avaland House, 110 London Road, Apsley, Hemel
Hempstead,
Herts, HP3 9SD. Company Registration No. 2578478.
The
information in this e-mail is confidential and for use by the addressee(s)
only. If you are not the intended recipient, please notify X-on immediately
on +44(0)333 332 0000 and delete the
message from your computer. If you are
not a named addressee you must not use,
disclose, disseminate, distribute,
copy, print or reply to this email. Views
or opinions expressed by an
individual
within this email may not necessarily
reflect the views of X-on
or its associated companies. Although X-on routinely
screens for viruses,
addressees should scan this email and any attachments
for
viruses. X-on
makes no representation or warranty as to the absence of viruses
in this
email or any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191129/10a538a4/attachment.html>
More information about the Users
mailing list