Closed kris-sum closed 3 years ago
Hi Kris, This memory leak is only in your Python application and not the Greengrass nucleus, right? If that's the case, can you please open an issue in the Python SDK repository instead? I know it shouldn't matter to you, but we're actually two teams and they are much better situated to help with this problem.
Doh! My mistake, will re-post.
Describe the bug I'm sending thousands of messages per minute into IoT Core using
IPC.new_publish_to_iot_core()
, and there seems to be a tiny memory leak in the IPC client, which stacks up over time. Over the course of a few days, my script consumes hundreds of megabytes.To Reproduce
Expected behavior Python script should run without growing memory resource usage.
Actual behavior Memory usage increases as quantity of messages increases.
Environment
Additional context The amount of memory leaked does not appear to be proportional to the request payload size. My attempts to use tracemalloc to further diagnose this leak haven't turned up anything I can immediately see wrong (but i'm not an expert in python)