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

System error: out of memory #1784

Closed
4 tasks
dekit-cn opened this issue Sep 24, 2022 · 9 comments
Closed
4 tasks

System error: out of memory #1784

dekit-cn opened this issue Sep 24, 2022 · 9 comments
Labels
bug Something isn't working stale No activity for more than 30 days

Comments

@dekit-cn
Copy link

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 alist and not something else(such as Dependencies or Operational).
  • 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
@dekit-cn dekit-cn added the bug Something isn't working label Sep 24, 2022
@welcome
Copy link

welcome bot commented Sep 24, 2022

Thanks for opening your first issue here! Be sure to follow the issue template!

@xhofe
Copy link
Collaborator

xhofe commented Sep 24, 2022

日志太少

@xhofe xhofe added the question Further information is requested label Sep 24, 2022
@github-actions
Copy link

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自动关闭。

@foxxorcat
Copy link
Contributor

@xhofe
这问题不好解决,图片处理是全部读取后才好进行处理,而且为了兼容性,go默认的库也是这样做的.并且没做缓存处理,每次请求都会重新读取生成,文件多了或请求多了直接炸.
解决方法:
1.自己重新写图像处理不用官方库,直接跳越读取像素块(麻烦且bug多,不兼容所有类型的图片,治标不治本)
2.要不就是直接生成后缓存,等待生成的默认返回一个指定图片(占用硬盘空间)

@wolonggl
Copy link

当启用缩略图后,如果页面从当前页面退出后,后台应该停止缩略图生成过程,目前观察是生成当前页面所有的缩略图后才结束,如果图片数量较多时,等待时间很久;
当启用缩略图时,同时页面浏览是列表方式时,建议不要开启缩略图生成;

@github-actions github-actions bot added the stale No activity for more than 30 days label Nov 1, 2022
@github-actions
Copy link

github-actions bot commented Nov 1, 2022

Hello, this issue has been inactive for more than 30 days and will be closed if inactive for another 30 days.

@github-actions
Copy link

github-actions bot commented Dec 8, 2022

Hello @, this issue was closed due to inactive more than 60 days. You can reopen or recreate it if you think it should continue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2022
@SignorMercurio
Copy link

This issue still persists(v3.9.0). Any update on this?

@whx1024
Copy link

whx1024 commented Jan 28, 2023

我也存在相同问题,在我上传文件时(通过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文件,,我该如何解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale No activity for more than 30 days
Projects
None yet
Development

No branches or pull requests

6 participants