alist-org / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
41.92k stars 5.41k forks source link

alist有时候占用cpu很高 #7110

Open gdtv opened 2 weeks ago

gdtv commented 2 weeks ago

Please make sure of the following things

AList Version / AList 版本

v3.36.0

Driver used / 使用的存储驱动

移动云盘,123云盘

系统

运行于hyper-v里的debian12虚拟机,cpu是7505,性能不会太差。

Describe the bug / 问题描述

简介: 在windows里打开有几百个视频的文件夹,等待缩略图加载的时候,容易没有反应,cpu占用百分之几百。


详情:

我的使用方案是: 移动云盘/123云盘 -> 挂载到alist -> 挂载为crypt加密存储 -> Raddrive挂载到windows

在windows里打开有几百个视频的使用crypt驱动的文件夹,等待缩略图加载的时候,容易没有反应,缩略图停止加载,所有文件打不开,网页UI里也打不开文件。

此时查看系统,发现alist进程占用百分之几百的cpu使用率。等待几十分钟仍然不会自动恢复。要重启alist进程才能恢复正常。

屏幕截图 2024-08-29 225622

尝试过将 config.json 里的 max_connections 设置为1,没有效果。

Reproduction / 复现链接

Config / 配置

{
  "force": false,
  "site_url": "",
  "cdn": "",
  "jwt_secret": "xxxxxxxxxxxxxxxxx",
  "token_expires_in": 48,
  "database": {
    "type": "sqlite3",
    "host": "",
    "port": 0,
    "user": "",
    "password": "",
    "name": "",
    "db_file": "data/data.db",
    "table_prefix": "x_",
    "ssl_mode": "",
    "dsn": ""
  },
  "meilisearch": {
    "host": "http://localhost:7700",
    "api_key": "",
    "index_prefix": ""
  },
  "scheme": {
    "address": "0.0.0.0",
    "http_port": 5244,
    "https_port": -1,
    "force_https": false,
    "cert_file": "",
    "key_file": "",
    "unix_file": "",
    "unix_file_perm": ""
  },
  "temp_dir": "/mnt/tmp/alist",
  "bleve_dir": "data/bleve",
  "dist_dir": "",
  "log": {
    "enable": true,
    "name": "data/log/log.log",
    "max_size": 50,
    "max_backups": 30,
    "max_age": 28,
    "compress": false
  },
  "delayed_start": 0,
  "max_connections": 1,
  "tls_insecure_skip_verify": true,
  "tasks": {
    "download": {
      "workers": 5,
      "max_retry": 1
    },
    "transfer": {
      "workers": 5,
      "max_retry": 2
    },
    "upload": {
      "workers": 5,
      "max_retry": 0
    },
    "copy": {
      "workers": 5,
      "max_retry": 2
    }
  },
  "cors": {
    "allow_origins": [
      "*"
    ],
    "allow_methods": [
      "*"
    ],
    "allow_headers": [
      "*"
    ]
  },
  "s3": {
    "enable": false,
    "port": 5246,
    "ssl": false
  }
}

1

2

3

Logs / 日志

No response

welcome[bot] commented 2 weeks ago

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

pongfcnkl commented 2 weeks ago

限制一下Raddrive的请求吧

gdtv commented 2 weeks ago

Raddrive

Raddrive里面好像没有地方设置限制