You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the current circumstances, I am forced to use a proxy/VPN to watch YouTube videos. Youtube uses HLS protocol to translate videos and video is transfered by 10-seconds long chunks, i.e. Youtube player opens connections once per 10 seconds to get next chunk. Watching Youtube video through sing-box vless reality connection I've noticed that memory usage on remote server is growing fast enough. I've noticed this while I use sing-box v1.10.5 and upgrade to 1.10.6 did not help.
I have home server running sing-box as proxy under Ubuntu 22.04.5 and I use Android TV Player with SmartTube player on it to watch Youtube videos. Last time when I watch videos I monitored amount of inbound and outbound connections to/from sing-box at my home server. Here is Ubuntu console output:
root@home-server:~# date
Sun 05 Jan 2025 00:14:00 MSK
root@home-server:~# netstat -na | grep 192.168.0.242:2080 | grep ESTABLISHED -c
9
root@home-server:~# netstat -na | grep <server-ip-address>:443 | grep ESTABLISHED -c
158
root@home-server:~# netstat -na | grep 192.168.0.242:2080 | grep ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40376 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40390 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40358 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40388 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40026 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40062 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40020 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40356 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40374 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40364 ESTABLISHED
root@home-server:~# netstat -na | grep 192.168.0.242:2080 | grep ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40418 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40402 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40388 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40026 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40396 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40062 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40020 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40414 ESTABLISHED
root@home-server:~# netstat -na | grep 192.168.0.242:2080 | grep ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40464 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40026 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40062 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40020 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40454 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40466 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40448 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40446 ESTABLISHED
root@home-server:~# netstat -na | grep 192.168.0.242:2080 | grep ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40492 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40026 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40502 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40496 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40062 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40020 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40484 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40482 ESTABLISHED
root@home-server:~# netstat -na | grep <server-ip-address>:443 | grep ESTABLISHED -c
215
root@home-server:~#
i.e. while I was watching video amount of established connections to sing-box was always at 8-9 and source ports of inbound connections were changing but amount of outgoing connections from sing-box to server some time grew up to 215.
Here is Ubuntu console output after end of watching Youtube videos:
root@home-server:~# date
Sun 05 Jan 2025 00:27:58 MSK
root@home-server:~# netstat -na | grep 192.168.0.242:2080 | grep ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:41042 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:41044 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:41038 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:41040 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40902 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40924 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40758 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:41046 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40768 ESTABLISHED
tcp 0 0 192.168.0.242:2080 192.168.0.240:40750 ESTABLISHED
root@home-server:~# netstat -na | grep <server-ip-address>:443 | grep ESTABLISHED -c
455
Here is Ubuntu console output some time later:
root@home-server:~# date
Sun 05 Jan 2025 00:50:23 MSK
root@home-server:~# netstat -na | grep 192.168.0.242:2080 | grep ESTABLISHED
root@home-server:~# netstat -na | grep 192.168.0.242:2080 | grep ESTABLISHED -c
0
root@home-server:~# netstat -na | grep <server-ip-address>:443 | grep ESTABLISHED -c
447
root@home-server:~#
i.e. all inbound connections to sing-box were disconnected but sing-box keep 447 connections to server open.
Here is Ubuntu console output 9 hours later:
root@home-server:~# date
Sun 05 Jan 2025 10:17:18 MSK
root@home-server:~# netstat -na | grep 192.168.0.242:2080 | grep ESTABLISHED -c
0
root@home-server:~# netstat -na | grep <server-ip-address>:443 | grep ESTABLISHED -c
447
root@home-server:~# systemctl restart [email protected]
root@home-server:~# netstat -na | grep <server-ip-address>:443 | grep ESTABLISHED -c
0
All 447 connections remain alive all this time. Only service restart disconnected these connections.
After service restart 45MB has been released on remote server:
I tried to use multiplex to prevent memory leak but sing-box fail to start with multiplex enabled on client side with my configuration with the following message:
FATAL[0000] start service: initialize rule-set[6]: initial rule-set: antizapret: local error: tls: bad record MAC
I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
The text was updated successfully, but these errors were encountered:
It looks like Windows console version has the same bug. That's graph of established incoming vless reality connections to remote server:
Around 0:30 today client PC running Windows console version of sing-box was turned off.
Operating system
Linux
System version
Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-130-generic x86_64)
Installation type
Original sing-box Command Line
If you are using a graphical client, please provide the version of the client.
I don't use graphical client.
Version
Description
Due to the current circumstances, I am forced to use a proxy/VPN to watch YouTube videos. Youtube uses HLS protocol to translate videos and video is transfered by 10-seconds long chunks, i.e. Youtube player opens connections once per 10 seconds to get next chunk. Watching Youtube video through sing-box vless reality connection I've noticed that memory usage on remote server is growing fast enough. I've noticed this while I use sing-box v1.10.5 and upgrade to 1.10.6 did not help.
I have home server running sing-box as proxy under Ubuntu 22.04.5 and I use Android TV Player with SmartTube player on it to watch Youtube videos. Last time when I watch videos I monitored amount of inbound and outbound connections to/from sing-box at my home server. Here is Ubuntu console output:
i.e. while I was watching video amount of established connections to sing-box was always at 8-9 and source ports of inbound connections were changing but amount of outgoing connections from sing-box to server some time grew up to 215.
Here is Ubuntu console output after end of watching Youtube videos:
Here is Ubuntu console output some time later:
i.e. all inbound connections to sing-box were disconnected but sing-box keep 447 connections to server open.
Here is Ubuntu console output 9 hours later:
All 447 connections remain alive all this time. Only service restart disconnected these connections.
After service restart 45MB has been released on remote server:
I tried to use multiplex to prevent memory leak but sing-box fail to start with multiplex enabled on client side with my configuration with the following message:
Reproduction
Client config:
Logs
No response
Supporter
Integrity requirements
The text was updated successfully, but these errors were encountered: