alist icon indicating copy to clipboard operation
alist copied to clipboard

alist有时候占用cpu很高

Open gdtv opened this issue 1 year ago • 4 comments

Please make sure of the following things

  • [X] I have read the documentation. 我已经阅读了文档

  • [X] I'm sure there are no duplicate issues or discussions. 我确定没有重复的issue或讨论。

  • [X] I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational). 我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • [X] I'm sure this issue is not fixed in the latest version. 我确定这个问题在最新版本中没有被修复。

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

gdtv avatar Aug 29 '24 15:08 gdtv

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

welcome[bot] avatar Aug 29 '24 15:08 welcome[bot]

限制一下Raddrive的请求吧

pongfcnkl avatar Aug 30 '24 04:08 pongfcnkl

Raddrive

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

gdtv avatar Aug 30 '24 07:08 gdtv

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 13 '24 13:10 stale[bot]

Hello @, this issue was closed due to inactive more than 52 days. You can reopen or recreate it if you think it should continue. Thank you for your contributions again.

github-actions[bot] avatar Nov 08 '24 00:11 github-actions[bot]