System error: out of memory
Please make sure of the following things
- [ ] I have read the documentation.
- [ ] I'm sure there are no duplicate issues or discussions.
- [ ] I'm sure it's due to
alistand not something else(such asDependenciesorOperational). - [ ] I'm sure I'm using the latest version
Alist Version / Alist 版本
3.01
Driver used / 使用的存储驱动
本机存储
Describe the bug / 问题描述
System error: out of memory 开启缩略图后,本机目录图片有3千张,浏览着就出现内存不够的提醒了。 是用docker 部署的方案。
Reproduction / 复现链接
docker run -d --restart=always -v /etc/alist:/opt/alist/data -p 5244:5244 --name="alist" xhofe/alist:latest
Logs / 日志
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1594
Thanks for opening your first issue here! Be sure to follow the issue template!
日志太少
Hello @dekit-cn, please input issue by template and add detail. Issues labeled by question will be closed if no activities in 7 days.
你好 @dekit-cn,请按照issue模板填写, 并详细说明问题/复现步骤/复现链接/实现思路或提供更多信息等, 7天内未回复issue自动关闭。
@Xhofe 这问题不好解决,图片处理是全部读取后才好进行处理,而且为了兼容性,go默认的库也是这样做的.并且没做缓存处理,每次请求都会重新读取生成,文件多了或请求多了直接炸. 解决方法: 1.自己重新写图像处理不用官方库,直接跳越读取像素块(麻烦且bug多,不兼容所有类型的图片,治标不治本) 2.要不就是直接生成后缓存,等待生成的默认返回一个指定图片(占用硬盘空间)
当启用缩略图后,如果页面从当前页面退出后,后台应该停止缩略图生成过程,目前观察是生成当前页面所有的缩略图后才结束,如果图片数量较多时,等待时间很久; 当启用缩略图时,同时页面浏览是列表方式时,建议不要开启缩略图生成;
Hello, this issue has been inactive for more than 30 days and will be closed if inactive for another 30 days.
Hello @, this issue was closed due to inactive more than 60 days. You can reopen or recreate it if you think it should continue.
This issue still persists(v3.9.0). Any update on this?
我也存在相同问题,在我上传文件时(通过web页面 上传到webdev)(上传+form+添加为任务),当最后一个文件上传完毕时,系统会[39441.973916] Out of memory: Killed process 419 (alist) total-vm:2990344kB, anon-rss:696596KB, file-rss: 0kB, shmem-rss:0kB, UID:0 pgtables:3220kB oom_score_adj:0 提示我alist被杀掉,同时webdev中留下了tmp文件,,我该如何解决?