# RAM issue in Ray

**URL:** <https://discuss.ray.io/t/ram-issue-in-ray/356>\
**Category:** Ray Core\
**Created:** [December 31, 2020, 2:20am UTC](https://discuss.ray.io/t/ram-issue-in-ray/356 "2020-12-31T02:20:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![divyankgarg](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/divyankgarg/32/165_2.png) [@divyankgarg](https://discuss.ray.io/u/divyankgarg)\
**Post date:** [December 31, 2020, 2:20am UTC](https://discuss.ray.io/t/ram-issue-in-ray/356/1 "2020-12-31T02:20:37Z")

</div>

How to fix the constantly growing memory usage of ray?  
Why RAM keep on exceeding to huge amount and then it show memory issue while performing some ray tune functions? We even though close and shutdown ray in other notebooks but then also memory do not decreases.

---

<div class="post-metadata">

**Author:** ![rliaw](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/rliaw/32/24_2.png) [@rliaw](https://discuss.ray.io/u/rliaw)\
**Post date:** [December 31, 2020, 7:40pm UTC](https://discuss.ray.io/t/ram-issue-in-ray/356/2 "2020-12-31T19:40:40Z")

</div>

> [@divyankgarg](#):
>
> Why RAM keep on exceeding to huge amount and then it show memory issue while performing some ray tune functions? We even though close and shutdown ray in other notebooks but then also memory do not decreases.

Which process is the cause of the memory leak?

---

<div class="post-metadata">

**Author:** ![sangcho](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sangcho/32/425_2.png) [@sangcho](https://discuss.ray.io/u/sangcho)\
**Post date:** [January 4, 2021, 5:41pm UTC](https://discuss.ray.io/t/ram-issue-in-ray/356/3 "2021-01-04T17:41:20Z")

</div>

Here’s also a document for the memory management [https://docs.ray.io/en/latest/memory-management.html](https://docs.ray.io/en/latest/memory-management.html)

---

<div class="post-metadata">

**Author:** ![bzs](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/bzs/32/182_2.png) [@bzs](https://discuss.ray.io/u/bzs)\
**Post date:** [January 15, 2021, 8:18pm UTC](https://discuss.ray.io/t/ram-issue-in-ray/356/4 "2021-01-15T20:18:31Z")

</div>

I’ve seen SAC mem usage grow up to 30GB on 1.0.1.post1

> <https://github.com/ray-project/ray/issues/10530#issuecomment-760543703>
>
> What is the problem?
> When running SAC on Pendulum-v0 with gpu and single or multiple workers, rllib suffers from a memory leak...

---

<div class="post-metadata">

**Author:** ![sangcho](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sangcho/32/425_2.png) [@sangcho](https://discuss.ray.io/u/sangcho)\
**Post date:** [January 16, 2021, 3:15am UTC](https://discuss.ray.io/t/ram-issue-in-ray/356/5 "2021-01-16T03:15:58Z")

</div>

@divyankgarg Could you follow up richard’s question?
