# How to debug memory leak in deepstream

**URL:** <https://forums.developer.nvidia.com/t/how-to-debug-memory-leak-in-deepstream/82018>\
**Category:** DeepStream SDK\
**Created:** [September 20, 2019, 1:36am UTC](https://forums.developer.nvidia.com/t/how-to-debug-memory-leak-in-deepstream/82018 "2019-09-20T01:36:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_deng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Mike\_deng](https://forums.developer.nvidia.com/u/Mike_deng)\
**Post date:** [September 20, 2019, 1:36am UTC](https://forums.developer.nvidia.com/t/how-to-debug-memory-leak-in-deepstream/82018/1 "2019-09-20T01:36:19Z")

</div>

Hi when I run the deepstream with 1 rtsp stream,with yolov3-tiny, I found the memory increase 0.8 during half hours. and it continue to increase . from 15.2% to 16%. do I have a way to debug it? I didn’t change the code in objectDector\_Yolo, only run with my model.

---

<div class="post-metadata">

**Author:** ![Mike\_deng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Mike\_deng](https://forums.developer.nvidia.com/u/Mike_deng)\
**Post date:** [September 20, 2019, 1:39am UTC](https://forums.developer.nvidia.com/t/how-to-debug-memory-leak-in-deepstream/82018/2 "2019-09-20T01:39:28Z")

</div>

my device is Tx2 ,and deepstream is 4.0

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [September 23, 2019, 6:16am UTC](https://forums.developer.nvidia.com/t/how-to-debug-memory-leak-in-deepstream/82018/3 "2019-09-23T06:16:48Z")

</div>

Hi,

Would you mind to update your software into Deepstream 4.0.1 and JetPack4.2.2 first.  
There are some rtsp-related fixes in the new version.

Thanks.

---

<div class="post-metadata">

**Author:** ![CJR](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/cjr/32/14047_2.png) [@CJR](https://forums.developer.nvidia.com/u/CJR)\
**Post date:** [September 26, 2019, 6:00am UTC](https://forums.developer.nvidia.com/t/how-to-debug-memory-leak-in-deepstream/82018/4 "2019-09-26T06:00:17Z")

</div>

> [@](#):
>
> Hi when I run the deepstream with 1 rtsp stream,with yolov3-tiny, I found the memory increase 0.8 during half hours. and it continue to increase . from 15.2% to 16%. do I have a way to debug it? I didn’t change the code in objectDector\_Yolo, only run with my model.

Hi,

Are you using a custom model or standard yolov3-tiny ? Also, how did you test the memory leak ?

> > > do I have a way to debug it?  
> > > You can use valgrind to check memory leak.

---

<div class="post-metadata">

**Author:** ![mchi](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mchi/32/14043_2.png) [@mchi](https://forums.developer.nvidia.com/u/mchi)\
**Post date:** [April 27, 2020, 1:07am UTC](https://forums.developer.nvidia.com/t/how-to-debug-memory-leak-in-deepstream/82018/5 "2020-04-27T01:07:11Z")

</div>

Archived on April 27, 2020, 1:07am UTC


