google / google/openhtf

Memory leak in a long running application

Open
#860 6 comments 0 reactions 1 assignee Claimed by @arsharma1 View on GitHub
Dominant language
Python
Stars
722
Forks
237
Avg merge
11h 31m
Merged PRs (30d)
4

Description

Hello,

I'm using openhtf as the core module tester in my application. It consists of a long running process.
I'm encountering a huge memory leak. To validate my speculation, I took the hello world example and ran it in a loop which is similar of what I need in my application (create a thread per test and dispatch it...). The memory usage is indeed increasing. Here's a snapshot of the memory after a couple of iterations of the hello world example.

*** Logs (see the SummaryTracker print_diff at the end of each 100 iterations)
[hello_world_mm_leak.log](https://github.com/google/openhtf/files/2923648/hello_world_mm_leak.log)

*** Script (as a text file to be uploaded)
[hello_world_openhtf.py.txt](https://github.com/google/openhtf/files/2923642/hello_world_openhtf.py.txt)

I'd like to add that by using Processes, I've no longer encountered a memory leak. However, the use of them is a bit overkill in my application and creates other ones.

Thoughts?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.