mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3715] Bug report: AddClientTraffic update data too many SQL variables #2498
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#2498
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 @sara990099 on GitHub (Jan 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3715
Describe the bug
When my panel reaches around >1000 online users, I see this warning repeatedly and traffic updates fail:
base /usr/local/x-ui/x-ui[66249]: WARNING - X-UI: AddClientTraffic update data too many SQL variables
My SSD has no I/O problems (checked with iostat/fio), so this looks like a SQL/DB issue rather than storage. Please investigate — this makes the traffic accounting unreliable at high concurrent user counts.
How to repeat the problem?
Run x-ui on a server with default configuration.
Have ~1000+ clients connected (or simulate many clients that cause frequent traffic updates).
Observe logs; after client count passes ~1000 the warning appears and traffic updates stop being applied correctly.
Expected action
Traffic updates should continue to be recorded correctly regardless of the number of connected clients (within reasonable, tested limits).
Received action
No response
3x-ui Version
2.8.5
Xray-core Version
No response
Checklist