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

tester可能存在内存泄漏 #119

Open
bunnyxt opened this issue May 12, 2021 · 6 comments
Open

tester可能存在内存泄漏 #119

bunnyxt opened this issue May 12, 2021 · 6 comments
Assignees

Comments

@bunnyxt
Copy link

bunnyxt commented May 12, 2021

运行一段时间之后,tester占用的内存越来越多,必须手动重启才行,请问有人能帮忙看一下可能是哪里内存泄漏了么?

我使用docker-compose运行程序,并且修改了tester相关的配置,如下:

TEST_URL: <test-api-url>
TEST_TIMEOUT: 3
TEST_BATCH: 100

截图如下:

QQ截图20210512122509

可以看到,程序运行两个多月,getter和server的内存占用都比较正常,但是tester占用600+MB内存

@Germey
Copy link
Member

Germey commented May 23, 2021

多谢提醒,我会重点排查下

@Germey Germey self-assigned this May 23, 2021
@Germey Germey added the bug label May 23, 2021
@macanv
Copy link

macanv commented Feb 12, 2022

也遇到了同样的问题,跑了大概一个月,内存占用50多个G。

@y2000zhang
Copy link

y2000zhang commented Feb 12, 2022 via email

@yuryqwer
Copy link

yuryqwer commented Feb 15, 2022

我这边是getter内存泄漏,把base.py里面的19行requests库换成httpx就好了,不知道为什么

37eb844fcc9a8a75e80d0dd13fe9083
2726cf57b8caa3232f2e62dc57df60f

python版本3.7.4,requests版本2.26.0

@Germey
Copy link
Member

Germey commented Feb 27, 2022

我排查了一遍潜在问题可能是 aiohttp 本身的问题,先试着升级下版本看看。

后续继续观察。

@Robo5412
Copy link

Robo5412 commented Apr 7, 2022

有什么解决办法了吗?我放服务器跑一个星期多了5-6G的内存

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

No branches or pull requests

6 participants