Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Display Filtering is very slow and results in extreme CPU usage spikes on server

未关闭
#2,045 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@Antreesy 已经在做这个了。

开始于 2026年6月8日。

  • #2051 来自 @Antreesy —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
javascript
领域
frontend

调研方向

从日志读取器的显示过滤流程开始,使用 warning、error 和 fatal 级别在 Nextcloud 34.0.4 上重现该问题。比较初始的过滤加载与未过滤加载之后的过滤,并调查自动刷新路径。当过滤后的日志能在约一秒内加载完成且没有明显的 CPU 峰值,并且自动刷新恢复工作时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

0. Needs triage bug
How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce
  1. Use Nextcloud 34.0.4
  2. Go to log reader in admin settings
  3. Set "Filter logging levels" to only display warning, error, fatal (backend log is set to the same settings by default)
  4. refresh the reader
  5. loads for more than 10 seconds

When the filtering is applied after initial load (without any filtering) the filtering happens instantly.
Before we used Nextcloud 32.0.8 - the problem did not exist there.

Expected behaviour
  • Logs typically load within one second
  • No notable CPU spike
  • Logs refresh automatically
Actual behaviour
  • Logs take upwards of 10 seconds to load
  • Extreme CPU usage (in kubernetes from 0.1 CPU to 3.0 CPU)
  • The automatic refresh does not work anymore
Server configuration

Web server: Apache

Database: PostgreSQL

PHP version: 8.4

Nextcloud version: 34.0.4

List of activated apps
  • activity: 6.0.0
  • app_api: 33.0.0
  • assistant: 3.4.3
  • bruteforcesettings: 6.0.0
  • calendar: 6.4.2
  • circles: 33.0.0
  • cloud_federation_api: 1.17.0
  • comments: 1.23.0
  • contacts: 8.5.1
  • contactsinteraction: 1.14.1
  • dav: 1.36.0
  • deck: 1.17.1
  • federatedfilesharing: 1.23.0
  • federation: 1.23.0
  • files: 2.5.0
  • files_downloadlimit: 5.1.0
  • files_pdfviewer: 6.0.0
  • files_reminders: 1.6.0
  • files_sharing: 1.25.2
  • files_trashbin: 1.23.0
  • files_versions: 1.26.0
  • firstrunwizard: 6.0.0
  • groupfolders: 21.0.7
  • integration_openai: 4.5.1
  • logreader: 6.0.0
  • lookup_server_connector: 1.21.0
  • notes: 5.0.0
  • notifications: 6.0.0
  • notify_push: 1.3.3
  • oauth2: 1.21.0
  • password_policy: 5.0.0
  • photos: 6.0.0
  • polls: 9.1.4
  • privacy: 5.0.0
  • profile: 1.2.0
  • provisioning_api: 1.23.0
  • recommendations: 6.0.0
  • related_resources: 4.0.0
  • richdocuments: 10.1.3
  • serverinfo: 5.0.0
  • settings: 1.16.0
  • sharebymail: 1.23.0
  • systemtags: 1.23.0
  • tables: 2.1.1
  • tasks: 0.17.1
  • text: 7.0.1
  • theming: 2.8.0
  • twofactor_backupcodes: 1.22.0
  • twofactor_totp: 15.0.0
  • user_oidc: 8.10.1
  • viewer: 6.0.0
  • webhook_listeners: 1.5.0
  • whiteboard: 1.5.9
  • workflowengine: 2.15.0
Nextcloud configuration

"system": {
"installed": true,
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"dbtype": "pgsql",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbname": "REMOVED SENSITIVE VALUE",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"mysql.utf8mb4": true,
"dbtableprefix": "oc_",
"version": "33.0.4.1",
"trusted_domains": [
"localhost",
"REMOVED SENSITIVE VALUE",
"REMOVED SENSITIVE VALUE"
],
"trashbin_retention_obligation": "7,14",
"htaccess.RewriteBase": "/",
"memcache.local": "\OC\Memcache\APCu",
"apps_paths": [
{
"path": "/var/www/html/apps",
"url": "/apps",
"writable": false
},
{
"path": "/var/www/html/custom_apps",
"url": "/custom_apps",
"writable": true
}
],
"lost_password_link": "disabled",
"allow_user_to_change_display_name": true,
"skeletondirectory": "",
"templatedirectory": "",
"default_language": "de",
"default_locale": "de_DE",
"default_phone_region": "DE",
"default_timezone": "Europe/Berlin",
"maintenance_window_start": 1,
"trusted_proxies": "REMOVED SENSITIVE VALUE",
"overwriteprotocol": "https",
"forwarded_for_headers": [
"HTTP_X_FORWARDED_FOR"
],
"memcache.distributed": "\OC\Memcache\Redis",
"memcache.locking": "\OC\Memcache\Redis",
"redis": {
"host": "REMOVED SENSITIVE VALUE",
"password": "REMOVED SENSITIVE VALUE",
"port": 6379
},
"mail_smtpmode": "smtp",
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"mail_smtpport": "25",
"mail_smtpsecure": "",
"mail_smtpauth": true,
"mail_smtpauthtype": "false",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"upgrade.disable-web": true,
"maintenance": false,
"overwrite.cli.url": "REMOVED SENSITIVE VALUE",
"loglevel": "2",
"enable_previews": true,
"allow_local_remote_servers": true,
"files.chunked_upload.max_size": 0,
"appstoreurl": "REMOVED SENSITIVE VALUE",
"forbidden_filename_basenames": [
"con",
"prn",
"aux",
"nul",
"com0",
"com1",
"com2",
"com3",
"com4",
"com5",
"com6",
"com7",
"com8",
"com9",
"com\u00b9",
"com\u00b2",
"com\u00b3",
"lpt0",
"lpt1",
"lpt2",
"lpt3",
"lpt4",
"lpt5",
"lpt6",
"lpt7",
"lpt8",
"lpt9",
"lpt\u00b9",
"lpt\u00b2",
"lpt\u00b3"
],
"forbidden_filename_characters": [
"<",
">",
":",
""",
"|",
"?",
"*",
"\",
"/"
],
"forbidden_filename_extensions": [
" ",
".",
".filepart",
".part"
],
"app_install_overwrite": [],
"twofactor_enforced": "true",
"twofactor_enforced_groups": [
"2faenabled"
],
"twofactor_enforced_excluded_groups": [],
"simpleSignUpLink.shown": false,
"openmetrics_allowed_clients": [
"127.0.0.1",
"10.42.0.0/16",
"10.43.0.0/16"
]
}

Browser

Browser name: Chrome

Browser version: 148

Operating system: -

Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
主要语言
JavaScript
星标
71
派生
30
平均合并
11 小时
30 天内合并 PR
87

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/logreader 的其他 Issue

查看 nextcloud/logreader 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。