mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5403] [Bug]: Server becomes completely unresponsive after adding users in latest 3x-ui version #3778
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3778
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @maralnet20-sudo on GitHub (Jun 17, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5403
Describe the bug
Hello,
After upgrading 3x-ui to the latest version, I encountered a serious problem.
When I install the latest version of 3x-ui on a clean server without any users, the panel works normally.
But after adding users/clients, the whole server becomes completely unresponsive.
The issue is not only related to the 3x-ui web panel. Even the server terminal/SSH becomes unavailable, and I cannot run any commands anymore.
The only way to recover the server is to rebuild it from the hosting provider control panel.
I checked the server logs and resource usage from my hosting provider panel. After users are added, all server resources become fully occupied, and the server can no longer process anything.
My first server specs were:
CPU: 1 Core
RAM: 2 GB
I also upgraded the server resources, but the problem still remained and was not fixed.
So it seems that in the latest version, when users/clients are added, 3x-ui or xray may cause extremely high resource usage, which leads to the whole server freezing/crashing.
Steps to reproduce:
Expected behavior:
The panel should handle users normally and should not make the whole server unavailable.
Actual behavior:
After adding users, CPU/RAM usage becomes extremely high and the entire server goes down or freezes.
Please investigate this issue because it can make production servers completely unusable after upgrading to the latest version.
Thank you.
How to reproduce the problem
3x-ui version:
OS: Ubuntu / Debian
CPU:
RAM:
Number of users/clients:
Xray version:
Installation method: official script / manual
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.3.1
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
ubuntu 22
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 17, 2026):
The report describes a complete resource-exhaustion event (CPU + RAM fully consumed, SSH unreachable, server must be rebuilt) that occurs after real clients begin connecting — not merely after adding the configuration entries. That pattern points toward the Xray child process rather than the panel itself as the primary resource consumer, but diagnosing it requires the information listed below, none of which is present in the current report.
What is needed to investigate further
Panel + Xray version — run
x-uion the server and choose option 7 ("Check current panel information"), or run:The form says 3.3.1 but the Xray-core version field is blank. This is critical: many resource-usage regressions are in the Xray binary, not the panel.
OOM-killer evidence — after rebuilding, reproduce the issue, then from the provider console or serial console run:
If the kernel OOM-killed a process you will see a line naming it (e.g.
Killed process … (xray)or… (x-ui)). This immediately narrows scope to one component.Panel service logs — immediately after the freeze (or from the provider rescue console):
Inbound protocol and transport — which protocol (VLESS / VMess / Shadowsocks / etc.) and stream transport (REALITY, WebSocket, gRPC, XHTTP, mKCP, etc.) the added inbounds use. Memory usage per connection varies enormously between transports; mKCP in particular maintains large in-memory send/receive buffers per connection.
Approximate number of simultaneous connected clients at the time the server froze.
Whether IP limit (
LimitIP) is set on any client — theCheckClientIpJob(runs every 10 s) reads and parses the Xray access log on disk when IP-limiting is active with an older Xray binary that lacks the online-stats gRPC API. On a server receiving many connections, an unbounded access log file read every 10 seconds can spike memory usage. Confirmed ininternal/web/job/check_client_ip_job.go.Whether Xray access logging is enabled — check the Xray template config in the panel settings (Xray Configs → Log section). If access log path is set to a file (not
none), and the server is under high connection load, the log file can grow large before the hourly rotation runs.Why this is unlikely to be a panel-only bug
The panel's most frequent background jobs run at
@every 1s(Xray health check),@every 5s(traffic stats collection), and@every 10s(IP scan). For a single-panel deployment without remote nodes — the only case described here — the node heartbeat and node traffic-sync jobs exit immediately after loading zero nodes from the database (confirmed ininternal/web/job/node_heartbeat_job.go:42andinternal/web/job/node_traffic_sync_job.go:77). A complete server freeze on a 2 GB / 1-core machine under real client load is most consistent with either Xray exceeding available RAM (causing kernel OOM thrashing or an OOM kill of the xray process that the panel then repeatedly restarts), a disk-full condition from an unbounded log file, or a bug in the specific Xray binary version that only manifests under connection load.Please provide the items above — especially the Xray version and the
dmesgOOM output — so this can be routed to the correct component.This reply was generated automatically; a maintainer may follow up.