[GH-ISSUE #108] 运行一段时间很快就 CPU 负载高 #4494

Closed
opened 2026-03-01 15:33:42 +03:00 by kerem · 4 comments
Owner

Originally created by @sbilly on GitHub (Apr 27, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/108

Describe the bug
运行一段时间很快就 CPU 负载高

To Reproduce
反复访问菜单里面的 访问日志错误日志 就会让 CPU 负载 100%

Expected behavior
低 CPU 负载

Screenshots
image

image

Info (please complete the following information):

  • Server OS: Ubuntu 22.04 + docker (uozi/nginx-ui:latest d53dffd3d255)
  • Server Arch: x64
  • Nginx UI Version: 1.8.3(105)
  • Your Browser: Edge

Additional context

[nginx_log]
AccessLogPath = /va/log/nginx/access.log
ErrorLogPath  = /var/log/nginx/error.log

[openai]
BaseUrl =
Token   =
Proxy   =
Model   =

[git]
Url                =
AuthMethod         =
Username           =
Password           =
PrivateKeyFilePath =

[server]
HttpPort          = 9000
RunMode           = release
JwtSecret         = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
HTTPChallengePort = 9180
Email             = xxx@xxx.com
Database          = database
StartCmd          = bash
CADir             =
Demo              = false
PageSize          = 10
GithubProxy       =
NginxConfigDir    =
NginxPIDPath      =
Originally created by @sbilly on GitHub (Apr 27, 2023). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/108 **Describe the bug** 运行一段时间很快就 CPU 负载高 **To Reproduce** 反复访问菜单里面的 `访问日志` 和 `错误日志` 就会让 CPU 负载 100% **Expected behavior** 低 CPU 负载 **Screenshots** <img width="1777" alt="image" src="https://user-images.githubusercontent.com/123563/234942283-9c1de515-4120-427d-8c49-11a55fafc869.png"> <img width="678" alt="image" src="https://user-images.githubusercontent.com/123563/234942116-b6ebf800-4525-4ade-bdf3-f738237840dc.png"> **Info (please complete the following information):** - Server OS: Ubuntu 22.04 + docker (uozi/nginx-ui:latest d53dffd3d255) - Server Arch: x64 - Nginx UI Version: 1.8.3(105) - Your Browser: Edge **Additional context** ``` [nginx_log] AccessLogPath = /va/log/nginx/access.log ErrorLogPath = /var/log/nginx/error.log [openai] BaseUrl = Token = Proxy = Model = [git] Url = AuthMethod = Username = Password = PrivateKeyFilePath = [server] HttpPort = 9000 RunMode = release JwtSecret = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx HTTPChallengePort = 9180 Email = xxx@xxx.com Database = database StartCmd = bash CADir = Demo = false PageSize = 10 GithubProxy = NginxConfigDir = NginxPIDPath = ```
kerem 2026-03-01 15:33:42 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Apr 28, 2023):

我这边试了两台服务器,均无法复现...

<!-- gh-comment-id:1527305802 --> @0xJacky commented on GitHub (Apr 28, 2023): 我这边试了两台服务器,均无法复现...
Author
Owner

@0xJacky commented on GitHub (Apr 28, 2023):

CPU占用100%的时候,可以用 docker logs nginx-ui 看一下日志吗

<!-- gh-comment-id:1527313750 --> @0xJacky commented on GitHub (Apr 28, 2023): CPU占用100%的时候,可以用 docker logs nginx-ui 看一下日志吗
Author
Owner

@0xJacky commented on GitHub (Apr 30, 2023):

复现了,你的 access log path 设置错了,应该是 /var。对于不存在的记录,会造成 CPU 满载,这是个 bug,明天修复

<!-- gh-comment-id:1529083002 --> @0xJacky commented on GitHub (Apr 30, 2023): 复现了,你的 access log path 设置错了,应该是 /var。对于不存在的记录,会造成 CPU 满载,这是个 bug,明天修复
Author
Owner

@0xJacky commented on GitHub (May 1, 2023):

Fixed in 2c675be,感谢您的反馈

<!-- gh-comment-id:1529274348 --> @0xJacky commented on GitHub (May 1, 2023): Fixed in 2c675be,感谢您的反馈
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#4494
No description provided.