# try find memory leak

**URL:** <https://mediasoup.discourse.group/t/try-find-memory-leak/3282>\
**Category:** mediasoup libraries\
**Created:** [September 8, 2021, 1:24pm UTC](https://mediasoup.discourse.group/t/try-find-memory-leak/3282 "2021-09-08T13:24:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imkarmadev](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/imkarmadev/32/914_2.png) [@imkarmadev](https://mediasoup.discourse.group/u/imkarmadev)\
**Post date:** [September 8, 2021, 1:24pm UTC](https://mediasoup.discourse.group/t/try-find-memory-leak/3282/1 "2021-09-08T13:24:05Z")

</div>

Hi try run mediasoup with:

```auto
export MEDIASOUP_USE_VALGRIND="true"
export MEDIASOUP_VALGRIND_OPTIONS="--leak-check=full --track-fds=yes --log-file=/tmp/mediasoup_valgrind_`data +%s`.log"

```

but workers crash:

```auto
0|edge | (node:60084) UnhandledPromiseRejectionWarning: Error: [pid:60095, code:1, signal:null]
0|edge | at ChildProcess.<anonymous> (/home/ubuntu/edge/node_modules/mediasoup/lib/Worker.js:122:43)
0|edge | at ChildProcess.emit (events.js:376:20)
0|edge | at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
0|edge | (Use `node --trace-warnings ...` to show where the warning was created)
0|edge | (node:60084) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
0|edge | (node:60084) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

```

pls help, thx

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/nazar-pc/32/369_2.png) [@nazar-pc](https://mediasoup.discourse.group/u/nazar-pc)\
**Post date:** [September 8, 2021, 2:00pm UTC](https://mediasoup.discourse.group/t/try-find-memory-leak/3282/2 "2021-09-08T14:00:35Z")

</div>

Do you have valgrind installed though?  
It looks like the process has crashed and no one handled an exception that was thrown.
