[GH-ISSUE #1178] 【V2.1.6+】系统重启后,NginxUI启动无法访问且内存占用一直增加 #2436

Closed
opened 2026-02-27 12:22:18 +03:00 by kerem · 0 comments
Owner

Originally created by @xhal on GitHub (Jun 25, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1178

原先是在线升级的 V2.1.6

重启后无法访问, 内存占用快速增加
才启动一会,内存占用18%
Image

1分钟左右后,内存占用50%
Image

后手动升级成 V2.1.8

重启后还是无法访问, 内存占用也一直在增加,但比较慢了

Image

10几分钟后,内存占用增加到10%
Image

系统版本:

cat /etc/os-release 
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

nginx -V信息

nginx -V
nginx version: openresty/1.27.1.1
built by gcc 13.2.0 (Ubuntu 13.2.0-23ubuntu4) 
built with OpenSSL 3.0.13 30 Jan 2024
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-debug --with-cc-opt='-DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC -O2' --add-module=../ngx_devel_kit-0.3.3 --add-module=../echo-nginx-module-0.63 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.33 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.09 --add-module=../srcache-nginx-module-0.33 --add-module=../ngx_lua-0.10.27 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.37 --add-module=../array-var-nginx-module-0.06 --add-module=../memc-nginx-module-0.20 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.9 --add-module=../rds-json-nginx-module-0.17 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.15 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --user=www --group=www --with-http_gzip_static_module --with-threads --with-http_ssl_module --with-http_image_filter_module --with-http_stub_status_module --with-http_v2_module --with-stream --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module

app.ini配置

[app]
PageSize  = 20
JwtSecret = 5106d6e6-fc3f-4f0b-a555-c0ssd0589e02df79

[server]
Host    = 
Port    = 9000
RunMode = debug
BaseUrl = 

[database]
Name = database

[auth]
IPWhiteList         = 
BanThresholdMinutes = 10
MaxAttempts         = 10

[casdoor]
Endpoint        = 
ClientId        = 
ClientSecret    = 
CertificatePath = 
Organization    = 
Application     = 
RedirectUri     = 
ExternalUrl     = 

[cert]
RecursiveNameservers = 
Email                = xxx@xxxx.net
CADir                = 
RenewalInterval      = 7
HTTPChallengePort    = 9180

[cluster]
Node = 

[crypto]
Secret = 677a2bcfe0dc94f53e2e77142ccd4081ac8efa76179b7d2e7fbc4cfb5d2d844c

[http]
GithubProxy        = https://ghfast.top/
InsecureSkipVerify = false

[logrotate]
Enabled  = false
CMD      = logrotate /etc/logrotate.d/nginx
Interval = 1440

[nginx]
AccessLogPath   = /usr/local/nginxUI/01-ng-logs/access.log
ErrorLogPath    = /usr/local/nginxUI/01-ng-logs/error.log
LogDirWhiteList = /usr/local/nginxUI/01-ng-logs/
ConfigDir       = /usr/local/nginxUI/00-ng-conf/
PIDPath         = /usr/local/openresty/nginx/logs/nginx.pid
TestConfigCmd   = /usr/local/openresty/bin/openresty -t
ReloadCmd       = /usr/local/openresty/bin/openresty -s reload
RestartCmd      = start-stop-daemon --stop --quiet --oknodo --retry=TERM/30/KILL/5 --pidfile /usr/local/openresty/nginx/logs/nginx.pid && nginx
ConfigPath      = /usr/local/nginxUI/00-ng-conf/nginx.conf

[node]
Name                 = 
Secret               = 512bff9e-a8c8-425a-abdc-23ssa6e13779a7
SkipInstallation     = false
Demo                 = false
ICPNumber            = 
PublicSecurityNumber = 

[openai]
BaseUrl = 
Token   = 
Proxy   = 
Model   = 
APIType = OPEN_AI

[terminal]
StartCmd = login

[webauthn]
RPDisplayName = 
RPID          = 
RPOrigins     = 

Originally created by @xhal on GitHub (Jun 25, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1178 ### 原先是在线升级的 V2.1.6 重启后无法访问, 内存占用快速增加 才启动一会,内存占用18% <img width="688" alt="Image" src="https://github.com/user-attachments/assets/140d2571-d7e8-4837-a092-82898c7eb396" /> **1分钟左右后,内存占用50%** <img width="929" alt="Image" src="https://github.com/user-attachments/assets/b1fb5bf5-4705-4605-af6d-8c7293c298b3" /> ### 后手动升级成 V2.1.8 重启后还是无法访问, 内存占用也一直在增加,但比较慢了 <img width="927" alt="Image" src="https://github.com/user-attachments/assets/d41aaa81-733d-4384-8c67-da6873f94a66" /> **10几分钟后,内存占用增加到10%** ![Image](https://github.com/user-attachments/assets/7ddcbdad-f634-42fd-aa7d-dcc77f21115b) 系统版本: ```sh cat /etc/os-release PRETTY_NAME="Ubuntu 24.04.1 LTS" NAME="Ubuntu" VERSION_ID="24.04" VERSION="24.04.1 LTS (Noble Numbat)" VERSION_CODENAME=noble ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=noble LOGO=ubuntu-logo ``` nginx -V信息 ```sh nginx -V nginx version: openresty/1.27.1.1 built by gcc 13.2.0 (Ubuntu 13.2.0-23ubuntu4) built with OpenSSL 3.0.13 30 Jan 2024 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-debug --with-cc-opt='-DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC -O2' --add-module=../ngx_devel_kit-0.3.3 --add-module=../echo-nginx-module-0.63 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.33 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.09 --add-module=../srcache-nginx-module-0.33 --add-module=../ngx_lua-0.10.27 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.37 --add-module=../array-var-nginx-module-0.06 --add-module=../memc-nginx-module-0.20 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.9 --add-module=../rds-json-nginx-module-0.17 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.15 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --user=www --group=www --with-http_gzip_static_module --with-threads --with-http_ssl_module --with-http_image_filter_module --with-http_stub_status_module --with-http_v2_module --with-stream --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module ``` app.ini配置 ```ini [app] PageSize = 20 JwtSecret = 5106d6e6-fc3f-4f0b-a555-c0ssd0589e02df79 [server] Host = Port = 9000 RunMode = debug BaseUrl = [database] Name = database [auth] IPWhiteList = BanThresholdMinutes = 10 MaxAttempts = 10 [casdoor] Endpoint = ClientId = ClientSecret = CertificatePath = Organization = Application = RedirectUri = ExternalUrl = [cert] RecursiveNameservers = Email = xxx@xxxx.net CADir = RenewalInterval = 7 HTTPChallengePort = 9180 [cluster] Node = [crypto] Secret = 677a2bcfe0dc94f53e2e77142ccd4081ac8efa76179b7d2e7fbc4cfb5d2d844c [http] GithubProxy = https://ghfast.top/ InsecureSkipVerify = false [logrotate] Enabled = false CMD = logrotate /etc/logrotate.d/nginx Interval = 1440 [nginx] AccessLogPath = /usr/local/nginxUI/01-ng-logs/access.log ErrorLogPath = /usr/local/nginxUI/01-ng-logs/error.log LogDirWhiteList = /usr/local/nginxUI/01-ng-logs/ ConfigDir = /usr/local/nginxUI/00-ng-conf/ PIDPath = /usr/local/openresty/nginx/logs/nginx.pid TestConfigCmd = /usr/local/openresty/bin/openresty -t ReloadCmd = /usr/local/openresty/bin/openresty -s reload RestartCmd = start-stop-daemon --stop --quiet --oknodo --retry=TERM/30/KILL/5 --pidfile /usr/local/openresty/nginx/logs/nginx.pid && nginx ConfigPath = /usr/local/nginxUI/00-ng-conf/nginx.conf [node] Name = Secret = 512bff9e-a8c8-425a-abdc-23ssa6e13779a7 SkipInstallation = false Demo = false ICPNumber = PublicSecurityNumber = [openai] BaseUrl = Token = Proxy = Model = APIType = OPEN_AI [terminal] StartCmd = login [webauthn] RPDisplayName = RPID = RPOrigins = ```
kerem 2026-02-27 12:22:18 +03:00
  • closed this issue
  • added the
    bug
    label
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#2436
No description provided.