GithubHelp home page GithubHelp logo

Memory leak about mediasoup HOT 6 CLOSED

runner365 avatar runner365 commented on May 28, 2024
Memory leak

from mediasoup.

Comments (6)

jmillan avatar jmillan commented on May 28, 2024

Which memory is not released, the one of mediasoup-worker process?

The fact that malloc does not release the memory to the system does not necessarily mean that the is a memory leak.

Have you tried using jemalloc instead?

from mediasoup.

ibc avatar ibc commented on May 28, 2024

I'm afraid we cannot accept memory leak bug reports that are based on full apps or demo apps and do not precisely point to the exact memory leak. We do run mediasoup with Valgrind and we are not aware of memory leaks.

Another story is that, due to how malloc works, in some cases it takes long for the no longer used memory to be released as Jose said in comment above.

from mediasoup.

runner365 avatar runner365 commented on May 28, 2024

I'am sorry that I didn't find:

export MEDIASOUP_USE_VALGRIND="true"
export MEDIASOUP_VALGRIND_OPTIONS=${MEDIASOUP_VALGRIND_OPTIONS:="--leak-check=full --track-fds=yes --log-file=./mediasoup_valgrind_%p.log"}

It can use valgrind to check memory leak.

so you said it cause by the system malloc, which will release slowly back to the system.
Thanks, I will check whether they can be released back to system.
And use valgrind to test them.

from mediasoup.

ibc avatar ibc commented on May 28, 2024

As Jose said above, using jemalloc mitigates the problem. We use it in production.

from mediasoup.

runner365 avatar runner365 commented on May 28, 2024

jemalloc

Thanks, we will try it.
we develop sfu server based on mediasoup-demo which is nodejs. we see you has developed rust interface api in mediasoup.
Do you use rust in production and discard the nodejs?

from mediasoup.

ibc avatar ibc commented on May 28, 2024

Do you use rust in production and discard the nodejs?

We are not discarding NodeJS at all. We use it in production and others use Rust.

from mediasoup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.