XTLS / Xray-core

Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.
https://t.me/projectXray
Mozilla Public License 2.0
22.73k stars 3.65k forks source link

Shadowsocks2022 RAM Usage #3131

Open rhawsh opened 3 months ago

rhawsh commented 3 months ago

Hello.

I was in the middle of a test, and I noticed that the SS22 server RAM usage was much higher than other servers.

Server 1 : xray-core v1.8.9 : Shadowsocks2022 (tcp+udp) Server 2 : xray-core v1.8.9 : Vless-tcp-tls+nginx Server 3 : xray-core v1.8.9 : Vless-tcp-reality-vision

The uptime is correct and the server load is exactly equal. (network load and user counts are equal between 3 servers)

Is SS22 RAM usage always this much compared to other Vless combinations? xray-comparison

masbur commented 2 months ago

Just like a trojan, the RAM will be full and restart automatically due to OOM (Out of Memory)

I use vless to fallback to many modes like trojan ws, grpc and tcp

Nginx -> Vless TLS / Non TLS -> Trojan [ WS / gRPC / TCP ]

I don't know how to fix it. I've tested on older versions but still getting OOM

RPRX commented 1 month ago

目前 Xray 中的 SS2022 是基于 sing 那边的代码,在 Xray 这里好像有点 buggy(比如服务端 UDP),正好 v2fly 前段时间也实现了 SS2022,你测下它的有没有 OOM 问题,没问题的话我们 port 过来即可

RPRX commented 1 month ago

刚刚在想 XUDP 的 Global ID 没读取 SS2022 UDP 的那个 ID,回头看了下 VLESS 转 VLESS 好像都没传递 Global ID,还是要写一下