Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU usage and memory leak #99

Open
rty813 opened this issue Jan 28, 2022 · 2 comments
Open

High CPU usage and memory leak #99

rty813 opened this issue Jan 28, 2022 · 2 comments

Comments

@rty813
Copy link

rty813 commented Jan 28, 2022

When I use the pynng module, there will be occasional memory leaks, the available memory will gradually decrease, and the CPU usage will reach more than 120%. Since my program is more complicated, I'm not sure if it's a problem with the pynng module, or something else. So I want to ask, is there any way to troubleshoot?

There are some logcat screenshot.

  1. lsof
    e06d2d7f99a1fd4d06642fa48749213

  2. strace (9742 is the problematic process)
    4ab9b2a9d415eacb7833808b076755b

  3. top -c
    image

  4. mem_avail
    1643342449(1)

@aqc-carlodri
Copy link

Hi @rty813, I think I'm stumbling exactly in the same problem. The fact is that the leak happens very slowly, i.e. I see a very slow drift in memory usage. However, I'm also not sure if it's pynng or some other piece of code.

@rty813
Copy link
Author

rty813 commented Apr 18, 2023

Hi @rty813, I think I'm stumbling exactly in the same problem. The fact is that the leak happens very slowly, i.e. I see a very slow drift in memory usage. However, I'm also not sure if it's pynng or some other piece of code.

use nng, leak still happend. So, I think it's nng's problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants