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

经常因为挂久了OOM(炸内存) #174

Open
luo7ianyi opened this issue Oct 29, 2024 · 5 comments
Open

经常因为挂久了OOM(炸内存) #174

luo7ianyi opened this issue Oct 29, 2024 · 5 comments

Comments

@luo7ianyi
Copy link

image
随着时间的推移,这个内存占用会越来越高直至撑爆内存
可能是缺少内存回收机制
我已经被炸过两回了(悲)

@jcjrobert
Copy link
Collaborator

我目前是通过挂docker限制内存解决的()

@luo7ianyi
Copy link
Author

看来只能用pm2大法来限制内存了()

pm2 start --max-memory-restart 2048MB python -- -m meme_generator.cli meme run

@MeetWq
Copy link
Owner

MeetWq commented Nov 2, 2024

可能是文字绘制的原因 #35

目前更改了文字绘制方式,可以用最新的代码看还有没有问题

@story-x
Copy link

story-x commented Nov 6, 2024

可能是文字绘制的原因 #35

目前更改了文字绘制方式,可以用最新的代码看还有没有问题

发送【复读 xxx】就重启了,docker部署的,下面是日志

image
60f3cce06818b2b27df6ebf3aa524346

@MeetWq
Copy link
Owner

MeetWq commented Nov 7, 2024

似乎还是有内存占用越来越高的问题,怀疑是 pillow 存在内存泄漏

@MeetWq MeetWq reopened this Nov 7, 2024
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

4 participants