1.12.12 SFM memory exploded
Operating system
macOS
System version
15.7.2
Installation type
sing-box for macOS Graphical Client
If you are using a graphical client, please provide the version of the client.
1.12.12
Version
Description
Memory exploded from 200MB to 1GB after being upgraded to 1.12.12, and the number of goroutines ranged from 3k to 30k. The problem was solved after being downgraded to 1.12.11.
1.12.12
1.12.11
Reproduction
need to be done
Logs
{
"log": {
"disabled": false,
"level": "trace",
"timestamp": true
},
"dns": {
"servers": [
{
"type": "udp",
"tag": "local",
"server": "223.5.5.5"
},
{
"type": "tls",
"tag": "proxy-dns",
"server": "8.8.8.8",
"detour": "proxy"
}
],
"rules": [
{
"rule_set": "geosite-geolocation-cn",
"server": "local"
},
{
"server": "proxy-dns"
}
]
},
"inbounds": [
{
"type": "tun",
"address": [
"172.19.0.1/30",
"fdfe:dcba:9876::1/126"
],
"auto_route": true,
"stack": "mixed",
"platform": {
"http_proxy": {
"enabled": true,
"server": "127.0.0.1",
"server_port": 7890
}
}
},
{
"type": "mixed",
"listen": "127.0.0.1",
"listen_port": 7890
}
],
"outbounds": [
{
"tag": "proxy",
"type": "selector",
"outbounds": [
"iepl taiwan 01",
"Hong Kong 01(Working)"
]
},
{
"tag": "iepl taiwan 01",
"type": "vmess",
"server": "vmws-tw.hutaonode5.top",
"server_port": 12533,
"uuid": "5251e3d8-f69f-39ed-8ab1-298d7dd7e1c3",
"security": "auto",
"alter_id": 0,
"transport": {
"type": "ws",
"headers": {
"Host": "bilibili.com"
},
"path": "/aHV0YW8"
}
},
{
"tag": "Hong Kong 01(Working)",
"type": "shadowsocks",
"server": "south.ltltltltltltlt.top",
"server_port": 20910,
"method": "aes-256-gcm",
"password": "f489a67d-a62b-475c-90d3-f0ed51a8d78b"
},
{
"tag": "direct",
"type": "direct"
}
],
"route": {
"default_domain_resolver": "local",
"rules": [
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"ip_is_private": true,
"outbound": "direct"
},
{
"rule_set": [
"geosite-geolocation-cn",
"geoip-cn"
],
"action": "route",
"outbound": "direct"
}
],
"rule_set": [
{
"type": "remote",
"tag": "geoip-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs"
},
{
"type": "remote",
"tag": "geosite-geolocation-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs"
}
],
"final": "proxy",
"auto_detect_interface": true
},
"experimental": {
"clash_api": {
"external_controller": "127.0.0.1:9090",
"external_ui": "ClashUIforSingbox",
"external_ui_download_url": "https://ghfast.top/https://github.com/Zephyruso/zashboard/releases/latest/download/dist-no-fonts.zip",
"external_ui_download_detour": "direct",
"default_mode": "Rule"
},
"cache_file": {
"enabled": true,
"store_fakeip": true,
"store_rdrc": true
}
}
}
Supporter
- [ ] I am a sponsor
Integrity requirements
- [x] 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.
- [x] 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.
- [x] 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.
- [x] 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.
我之前在安卓上也遇过类似的问题。你试试不要使用udp传输协议的dns,看看会不会有改善。
I also encountered the same issue on ImmortalWrt 24.10 after upgrading the sing-box version from 1.11.15 to 1.12.12. In addition to the memory usage skyrocketing to over 1 GB, the DNS module also stopped working.
我不用hy2内存就正常了,请不要相信原神,快回来吧😂
我发现在sfa也存在类似的问题,我发现好像是延迟测试导致的。无论是urltest还是手动测试每测一次内存占用稳定上升且不会释放,除非手动杀死进程。我测试了sfa的12.11或者13a26如果把urltest全删了纯手动测,就是正常的,12.12或者13a27开始无论删不删urltest都不正常,而如果保留urltest无论是不是手动测试,是不是历史版本和12.12或13a27都不正常,我没有做很多的测试所以不知道问题是从哪个版本开始出现的。但如果你遇到的问题和我遇到的是同一个问题,我想你说的内存占用一直在上涨大概是urltest一直在工作导致的,而我并不专业所以不知道是urltest本身导致的还是测试逻辑本身导致的,但目前看至少和urltest是有关系的。我尽量详细的表达了,说的比较啰嗦接,见谅。我暂时回退到a26并删掉urltest使用了,目前是正常的,希望可以早日解决。
补充一下,发现之前对版本切换时的测试变量控制不够严格,而在严格统一变量后再次测试,发现所有版本的问题表现一致,即:配置中只要存在urltest分组时无论是自动触发还是手动测试延迟都会稳定复现问题,而配置中完全不存在urltest后问题消失。之前不够严谨,抱歉
附议,这个应该不是SFM、SFA这样客户端的问题,而是sing-box内核某个版本开始就引入的问题。我补充一个情况,上周末我排查这个问题的时候,刚好有几个代理节点挂了,叠加1.12.12的内核,内存被爆到了10GB+
This shouldn’t be an SFM or SFA client-side issue, but rather something introduced in a certain version of the sing-box core. More details: when I was troubleshooting this issue last weekend, a few proxy nodes happened to be down, and combined with the 1.12.12 kernel, memory usage shot past 10 GB.
I also encountered the same issue on ImmortalWrt 24.10 after upgrading the sing-box version from 1.11.15 to 1.12.12. In addition to the memory usage skyrocketing to over 1 GB, the DNS module also stopped working.
How about 1.12.11?
There's nothing much changed from 12.11 to 12.12. https://github.com/SagerNet/sing-box/compare/v1.12.11...v1.12.12
I also encountered the same issue on ImmortalWrt 24.10 after upgrading the sing-box version from 1.11.15 to 1.12.12. In addition to the memory usage skyrocketing to over 1 GB, the DNS module also stopped working.
How about 1.12.11?
There's nothing much changed from 12.11 to 12.12. v1.12.11...v1.12.12
v1.12.11 has the same issue. v1.11.15 works fine after I rolled back the installed version.
I also encountered the same issue on ImmortalWrt 24.10 after upgrading the sing-box version from 1.11.15 to 1.12.12. In addition to the memory usage skyrocketing to over 1 GB, the DNS module also stopped working.
How about 1.12.11? There's nothing much changed from 12.11 to 12.12. v1.12.11...v1.12.12
v1.12.11 has the same issue. v1.11.15 works fine after I rolled back the installed version.
There's a lot of changes between that version, try gradually from 1.12.1, 1.12.5 , 1.12.10