[GH-ISSUE #3715] Bug report: AddClientTraffic update data too many SQL variables #2498

Closed
opened 2026-10-31 20:25:56 +07:00 by bsakaguchi · 0 comments
Owner

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

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
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 - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:25:56 +07: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
MHSanaei/3x-ui#2498
No description provided.