-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
生成缩略图疑似内存爆炸 #7082
Comments
补充:即使对一个体积较小的目录成功生成了所有缩略图,其占用的内存也会居高不下,一直无法释放。疑似有内存泄漏 |
这个问题不是内存泄漏导致的,生成图片过一段时间后内存占用会恢复正常,但是确实没有及时释放。 |
谢谢大佬! |
* add my_build.sh * Fix OOM of thumbnail generation of LoaclDrive by using a task queue to control thread count * remove my_build.sh * chore(local): allow ThumbConcurrency set to zero * revert(local): changes to thumbnail generating functions * feat(local): implement static token bucket * feat(local): use static token bucket to limit thumbnails generating concurrent --------- Co-authored-by: KKJas <[email protected]>
* add my_build.sh * Fix OOM of thumbnail generation of LoaclDrive by using a task queue to control thread count * remove my_build.sh * chore(local): allow ThumbConcurrency set to zero * revert(local): changes to thumbnail generating functions * feat(local): implement static token bucket * feat(local): use static token bucket to limit thumbnails generating concurrent --------- Co-authored-by: KKJas <[email protected]>
Please make sure of the following things
I have read the documentation.
我已经阅读了文档。
I'm sure there are no duplicate issues or discussions.
我确定没有重复的issue或讨论。
I'm sure it's due to
AList
and not something else(such as Network ,Dependencies
orOperational
).我确定是
AList
的问题,而不是其他原因(例如网络,依赖
或操作
)。I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。
AList Version / AList 版本
docker:xhofe/alist:v3.36.0-ffmpeg
Driver used / 使用的存储驱动
本地存储
Describe the bug / 问题描述
复现过程:
1.使用Alist添加一个本地存储,开启缩略图选项,其它保持默认
2.往这个存储里复制一些图片,每个图片约1m上下,总计200m左右的大小
3.访问Alist页面,打开对应的文件夹
4.将页面视图切换到“网格视图”,以开始生成缩略图
5.观察htop发现alist进程的内存从60m一瞬间上升到1.3G(我的系统总内存1.5G),然后整个系统卡死,只能断电重启
6.尝试使用docker compose参数mem_limit: '600M'将内存限制为600m
7.每当Alist触达这个内存限制都,容器都会重启。且docker日志中似乎看不到报错的字样
本地存储配置选项截图:
docker日志
Reproduction / 复现链接
这是我在本地本地部署的一个Alist实例,很抱歉实在没法提供公开访问的链接
Config / 配置
Logs / 日志
No response
The text was updated successfully, but these errors were encountered: