[OpenSIPS-Users] Memory Leak

Callum Guy callum.guy at x-on.co.uk
Mon Feb 13 20:41:16 UTC 2023


Hi All,

*(originally sent back in December with an image embedded which possibly
got the mail rejected!)*

I'm experiencing a memory leak on an OpenSIPs 3.2.10 instance (was 3.2.4,
upgrades to 3.2.9 and 3.2.10 did not resolve) which is acting as a WebRTC
proxy - this is running on AlmaLinux 9.0

The config is not much different from existing CentOS 7 servers which are
running 3.2.4 so I'm wondering if the issue is a difference in an
underlying library? Both use tls_openssl.so and the AlmaLinux install was
self packaged.

Here is the output of the memory dump:
https://gist.github.com/spacetourist/9a49ee7b55f2e5f0264f56adc10bf0fc

One item stands out as a strong candidate:
*opensips[287301]:   314792712 : 19101 x [ssl/record/ssl3_buffer.c:
os_malloc, line 119]*

The affected server is running AlmaLinux 9 with the following openssl
utilities:

openssl-pkcs11-0.4.11-7.el9.x86_64
xmlsec1-openssl-1.2.29-9.el9.x86_64
openssl-libs-3.0.1-23.el9_0.x86_64
openssl-3.0.1-23.el9_0.x86_64
openssl-devel-3.0.1-23.el9_0.x86_64

Our CentOS 7 server has:

openssl-libs-1.0.2k-19.el7.x86_64
openssl-devel-1.0.2k-19.el7.x86_64
openssl-1.0.2k-19.el7.x86_64

The symptom is memory creep of around 90MB/day for ~300k call sessions. Any
ideas would be appreciated, I'm on a weekly restart cycle to clear the
memory which I'd rather not implement as a cron!

Thanks,

Callum

-- 






*0333 332 0000  |  x-on.co.uk <https://www.x-on.co.uk>  |   ** 
<https://www.linkedin.com/company/x-on>   <https://www.facebook.com/XonTel> 
  <https://twitter.com/xonuk> **  |  **Practice Index Reviews 
<https://practiceindex.co.uk/gp/x-on>*

*Our new office address: 22 Riduna 
Park, Melton IP12 1QT.*

X-on
is a trading name of Storacall Technology Ltd 
a limited company registered in
England and Wales.

Registered Office : 
Glebe Farm, Down Street, Dummer, Basingstoke, Hampshire, England RG25 2AD. 
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/20230213/6a0b575d/attachment.html>


More information about the Users mailing list