# The standalone rpc service has memory leak

**URL:** <https://discourse.nameko.io/t/the-standalone-rpc-service-has-memory-leak/339>\
**Category:** Uncategorized\
**Created:** [September 11, 2018, 11:22am UTC](https://discourse.nameko.io/t/the-standalone-rpc-service-has-memory-leak/339 "2018-09-11T11:22:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyattsuen](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.nameko.io/wyattsuen/32/21_2.png) [@wyattsuen](https://discourse.nameko.io/u/wyattsuen)\
**Post date:** [September 11, 2018, 11:22am UTC](https://discourse.nameko.io/t/the-standalone-rpc-service-has-memory-leak/339/1 "2018-09-11T11:22:35Z")

</div>

hello,following code has memory leak. i find it out for my program need to process lots of data, and the memory leak seriously. if i get rid of this code, the leak vanish. so pls. fix it or provide some method to solve it. thanks.

with ClusterRpcProxy(config) as cluster\_rpc:  
cluster\_rpc.service\_x.remote\_method(data)

---

<div class="post-metadata">

**Author:** ![mattbennett](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.nameko.io/mattbennett/32/13_2.png) [@mattbennett](https://discourse.nameko.io/u/mattbennett)\
**Post date:** [September 11, 2018, 11:41am UTC](https://discourse.nameko.io/t/the-standalone-rpc-service-has-memory-leak/339/2 "2018-09-11T11:41:38Z")

</div>

There isn’t enough information here to know what’s causing the leak or even do any investigation.

Please reply here to let us know:

1. Is the target service running in a different process, or the same one?
2. What is in `data` (if you can share it)
3. What investigation you did to determine that this code is “leaking”?
4. What the result of the `pympler` object summary is. See [https://github.com/nameko/nameko/issues/538](https://github.com/nameko/nameko/issues/538) for more information.

---

<div class="post-metadata">

**Author:** ![wyattsuen](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.nameko.io/wyattsuen/32/21_2.png) [@wyattsuen](https://discourse.nameko.io/u/wyattsuen)\
**Post date:** [September 12, 2018, 5:10am UTC](https://discourse.nameko.io/t/the-standalone-rpc-service-has-memory-leak/339/3 "2018-09-12T05:10:12Z")

</div>

Oh, I find the problem for some days. And I solve the memory leak now. The reason involves C++ thread、async function call and others. The nameko is OK. So thanks for this beautiful framework.
