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

Web 服务器方式,生成带文字的表情后内存占用高 #35

Open
56789a1987 opened this issue May 22, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@56789a1987
Copy link

使用 Web 服务器方式启动服务,刚刚开始内存占用并不多,生成纯图片的表情也没问题。
生成带文字的几个表情后,内存占用一直居高不下。
希望能够对低配置服务器优化一下。

图中三个记录依次为生成 learn、look_this_icon、little_angel 之后的。

Screenshot_20230522_190822

@MeetWq MeetWq added the enhancement New feature or request label May 22, 2023
@jcjrobert
Copy link
Collaborator

与其说是meme-generator的问题,不如说是pil_utils的问题
我猜占用高是因为用while动态调整字体大小?但不知道有什么更好的实现方法
话说过一段时间后内存占用会不会少还是一直都这么高

@56789a1987
Copy link
Author

与其说是meme-generator的问题,不如说是pil_utils的问题
我猜占用高是因为用while动态调整字体大小?但不知道有什么更好的实现方法
话说过一段时间后内存占用会不会少还是一直都这么高

@jcjrobert 一直都这么高,只能手动重启服务

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

No branches or pull requests

3 participants